Skip to main content

Crate fdf

Crate fdf 

Source
Expand description

Bindings for the fuchsia driver framework C API

Structs§

AfterDeadline
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.
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.
AsyncDispatcher
A reference to a dispatcher that supports the v4 async api’s reference counting operations, and so can be held safely without a lifetime.
AsyncDispatcherRef
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.
AutoReleaseDispatcher
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 a DispatcherRef<'static> created by Dispatcher::release:
Channel
Implements a message channel through the Fuchsia Driver Runtime
CurrentDispatcher
A placeholder for the currently active dispatcher.
Dispatcher
An owned handle for a dispatcher managed by the driver runtime.
DispatcherBuilder
A builder for Dispatchers
DriverDispatcherRef
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.
JoinHandle
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.
MixedHandle
A handle that might be either a DriverHandle or a ZirconHandle, depending on its bit pattern.
OnInterrupt
A stream that yields notifications whenever a Zircon interrupt fires on a libasync dispatcher.
OnSignals
A future that completes when specified signals are asserted on a Zircon handle.
Task
The future returned by crate::OnDispatcher::compute. If this is dropped, the task will be cancelled.
WakeVectorRegistration
A registration handle for a wake vector event, returned by DriverDispatcherRef::register_wake_vector and OnDriverDispatcher::register_wake_vector. Caller must hold on to this as long as they want this wake vector to be active.
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§

AsAsyncDispatcherRef
A trait for things that can be represented as an AsyncDispatcherRef.
DispatcherInterruptExt
Extension trait adding interrupt listening capabilities to types providing an async dispatcher.
DispatcherTimerExt
Implements methods used for setting and waiting on timers on a dispatcher.
GetAsyncDispatcher
A trait for things that can be represented as an AsyncDispatcher.
OnDispatcher
A trait that can be used to access a lifetime-constrained dispatcher in a generic way.
OnDriverDispatcher
Makes available additional functionality available on driver dispatchers on top of what’s available on OnDispatcher.
ShutdownObserverFn
A marker trait for a function type that can be used as a shutdown observer for Dispatcher.

Type Aliases§

ZirconHandleRef
fdf_arena_t
An arena which supports allocation of memory.
fdf_dispatcher_t
Dispatcher for performing asynchronous operations.
fdf_handle_t