Skip to main content

Crate libasync_dispatcher

Crate libasync_dispatcher 

Source
Expand description

Safe bindings for the C libasync async dispatcher library

Structs§

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].
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.
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].