Skip to main content

Dispatch

Trait Dispatch 

Source
pub trait Dispatch<'a, C, H, Q: Quota<H>>: Sized
where C: Context<H>,
{ // Required methods unsafe fn new(host: &'a mut H, quota: Q) -> Self; fn dispatch( self, emit: impl for<'event> FnMut(Occupied<'event, C::Event>, &mut H) -> ControlFlow<Occupied<'event, C::Event>>, ) -> C::Dispatch; }
Expand description

Dispatches completions while the host retains their registered storage.

Required Methods§

Source

unsafe fn new(host: &'a mut H, quota: Q) -> Self

§Safety

Registered storage and kernel identities remain valid for this driver’s flights.

Source

fn dispatch( self, emit: impl for<'event> FnMut(Occupied<'event, C::Event>, &mut H) -> ControlFlow<Occupied<'event, C::Event>>, ) -> C::Dispatch

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§