Expand description
Bindings for the fuchsia driver framework C API
Structs§
- 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
T
in anArena
with lifetime'a
, and ensures that the object is properly dropped before theArena
goes out of scope. - ArenaRc
- An equivalent to
ArenaBox
that holds onto a reference to the arena to allow it to have static lifetime, and implementsClone
allowing it to be shared. Since it’s shared, you can’t get a mutable reference to it back without usingSelf::try_unwrap
to get the innerArenaStaticBox
. - Arena
Static Box - An equivalent to
ArenaBox
that holds onto a reference to the arena to allow it to have static lifetime. - Arena
Weak - A weak reference to an
ArenaRc
. - Channel
- Implements a message channel through the Fuchsia Driver Runtime
- Current
Dispatcher - A placeholder for the currently active dispatcher. Use
OnDispatcher::on_dispatcher
to access it when needed. - Dispatcher
- An owned handle for a dispatcher managed by the driver runtime.
- Dispatcher
Builder - A builder for
Dispatcher
s - 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
IntoIterator
of anArenaBox
of a slice that manages the memory behind it and ensures that it’s cleaned up. - 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
DriverHandle
or aZirconHandle
, depending on its bit pattern. - 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§
- 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
. - Task
Callback - A marker trait for a callback that can be used with
Dispatcher::post_task_sync
.