Skip to main content

Crate libasync

Crate libasync 

Source
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§

AfterDeadline
A future that represents a deferral to a future time.
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.
CurrentDispatcher
A placeholder for the currently active dispatcher. Use GetAsyncDispatcher::get_async_dispatcher to access it when needed.
DetectDispatcher
Implements a dispatcher that is either set at construction or detected and cached on first use.
JoinHandle
A handle for a task that will detach on drop. Returned by [OnDispatcher::spawn].
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.

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.
DispatcherSignalExt
Implements methods for setting and waiting on signals on a 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.
TaskCallback
A marker trait for a callback that can be used with [Dispatcher::post_task_sync].

Type Aliases§

OnSignalsRef
Alias for the common case where OnSignals is used with zx::HandleRef.