Expand description
Bindings for the core of the fuchsia driver framework C API
Modules§
- callback_
state - Helpers for writing futures against the C-based async API
Structs§
- After
Deadline - A future that represents a deferral to a future time.
- Async
Dispatcher - A reference to a dispatcher that supports the v4 async api’s reference counting operations, and so can be held safely without a lifetime.
- 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. - Current
Dispatcher - A placeholder for the currently active dispatcher. Use
GetAsyncDispatcher::get_async_dispatcherto access it when needed. - Detect
Dispatcher - Implements a dispatcher that is either set at construction or detected and cached on first use.
- Join
Handle - A handle for a task that will detach on drop. Returned by [
OnDispatcher::spawn]. - Task
- The future returned by
crate::OnDispatcher::compute. If this is dropped, the task will be cancelled.
Traits§
- AsAsync
Dispatcher Ref - A trait for things that can be represented as an
AsyncDispatcherRef. - Dispatcher
Timer Ext - Implements methods used for setting and waiting on timers on a dispatcher.
- GetAsync
Dispatcher - 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.
- Task
Callback - A marker trait for a callback that can be used with [
Dispatcher::post_task_sync].