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. - Join
Handle - A handle for a task that will detach on drop. Returned by
OnDispatcher::spawn. - Task
- The future returned by
OnDispatcher::computeor [OnDispatcher::try_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. - 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].