Module dispatcher

Module dispatcher 

Source
Expand description

Safe bindings for the driver runtime dispatcher stable ABI

Structs§

AfterDeadline
A future that represents a deferral to a future time.
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.
AutoReleaseDispatcher
An owned reference to a driver runtime dispatcher that auto-releases when dropped. This gives you the best of both worlds of having an Arc<Dispatcher> and a DispatcherRef<'static> created by Dispatcher::release:
CurrentDispatcher
A placeholder for the currently active dispatcher. Use OnDispatcher::on_dispatcher to access it when needed.
Dispatcher
An owned handle for a dispatcher managed by the driver runtime.
DispatcherBuilder
A builder for Dispatchers
DispatcherRef
An unowned reference to a driver runtime dispatcher such as is produced by calling Dispatcher::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.
JoinHandle
A handle for a task that will detach on drop. Returned by OnDispatcher::spawn.
Task
The future returned by OnDispatcher::compute or [OnDispatcher::try_compute]. If this is dropped, the task will be cancelled.
WeakDispatcher
An unowned but reference counted reference to a dispatcher. This would usually come from an AutoReleaseDispatcher reference to a dispatcher.

Traits§

AsyncDispatcher
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.
ShutdownObserverFn
A marker trait for a function type that can be used as a shutdown observer for Dispatcher.

Type Aliases§

fdf_dispatcher_t