Expand description
Safe bindings for the C libasync async dispatcher library
Structs§
- 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. - 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].