Expand description
Bindings for the fuchsia driver framework C API
Structs§
- After
Deadline - A future that represents a deferral to a future time.
- Arena
- Implements a memory arena allocator to be used with the Fuchsia Driver Runtime when sending and receiving from channels.
- Arena
Box - Holds a reference to data of type
Tin anArenawith lifetime'a, and ensures that the object is properly dropped before theArenagoes out of scope. - ArenaRc
- An equivalent to
ArenaBoxthat holds onto a reference to the arena to allow it to have static lifetime, and implementsCloneallowing it to be shared. Since it’s shared, you can’t get a mutable reference to it back without usingSelf::try_unwrapto get the innerArenaStaticBox. - Arena
Static Box - An equivalent to
ArenaBoxthat holds onto a reference to the arena to allow it to have static lifetime. - Arena
Weak - A weak reference to an
ArenaRc. - Async
Dispatcher Ref - An unowned reference to a driver runtime dispatcher such as is produced by calling
[
AsyncDispatcher::release]. When this object goes out of scope it won’t shut down the dispatcher, leaving that up to the driver runtime or another owner. - Auto
Release Dispatcher - An owned reference to a driver runtime dispatcher that auto-releases when dropped. This gives
you the best of both worlds of having an
Arc<Dispatcher>and aDispatcherRef<'static>created byDispatcher::release: - Channel
- Implements a message channel through the Fuchsia Driver Runtime
- Current
Dispatcher - A placeholder for the currently active dispatcher. Use
OnDispatcher::on_dispatcherto access it when needed. - Dispatcher
- An owned handle for a dispatcher managed by the driver runtime.
- Dispatcher
Builder - A builder for
Dispatchers - Dispatcher
Ref - An unowned reference to a driver runtime dispatcher such as is produced by calling
Dispatcher::release. When this object goes out of scope it won’t shut down the dispatcher, leaving that up to the driver runtime or another owner. - Driver
Handle - A handle representing some resource managed by the driver runtime.
- Driver
Handle Ref - An unowned reference to a driver handle type
- Into
Iter - The implementation for an
IntoIteratorof anArenaBoxof a slice that manages the memory behind it and ensures that it’s cleaned up. - Join
Handle - A handle for a task that will detach on drop. Returned by
OnDispatcher::spawn. - Message
- A struct that holds both an arena along with a data buffer that is allocated within that arena.
- Mixed
Handle - A handle that might be either a
DriverHandleor aZirconHandle, depending on its bit pattern. - Task
- The future returned by
OnDispatcher::computeor [OnDispatcher::try_compute]. If this is dropped, the task will be cancelled. - Weak
Dispatcher - An unowned but reference counted reference to a dispatcher. This would usually come from
an
AutoReleaseDispatcherreference to a dispatcher. - Zircon
Handle - An object representing a Zircon handle.
Enums§
- Mixed
Handle Type - An enum of the two types of handles that can be represented in a
MixedHandle.
Traits§
- Async
Dispatcher - A trait for things that can be represented as an
AsyncDispatcherRef. - OnDispatcher
- A trait that can be used to access a lifetime-constrained dispatcher in a generic way.
- Shutdown
Observer Fn - A marker trait for a function type that can be used as a shutdown observer for
Dispatcher.