Crate fdf

Source
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.
ArenaBox
Holds a reference to data of type T in an Arena with lifetime 'a, and ensures that the object is properly dropped before the Arena 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 implements Clone allowing it to be shared. Since it’s shared, you can’t get a mutable reference to it back without using Self::try_unwrap to get the inner ArenaStaticBox.
ArenaStaticBox
An equivalent to ArenaBox that holds onto a reference to the arena to allow it to have static lifetime.
ArenaWeak
A weak reference to an ArenaRc.
Channel
Implements a message channel through the Fuchsia Driver Runtime
CurrentDispatcher
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.
DispatcherBuilder
A builder for Dispatchers
DispatcherRef
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.
DriverHandle
A handle representing some resource managed by the driver runtime.
DriverHandleRef
An unowned reference to a driver handle type
IntoIter
The implementation for an IntoIterator of an ArenaBox 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.
MixedHandle
A handle that might be either a DriverHandle or a ZirconHandle, depending on its bit pattern.
ZirconHandle
An object representing a Zircon handle.

Enums§

MixedHandleType
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.
ShutdownObserverFn
A marker trait for a function type that can be used as a shutdown observer for Dispatcher.
TaskCallback
A marker trait for a callback that can be used with Dispatcher::post_task_sync.

Type Aliases§

ZirconHandleRef
fdf_arena_t
fdf_dispatcher_t
fdf_handle_t