pub trait Dispatch<'a, C, H, Q: Quota<H>>: Sizedwhere
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§
Sourceunsafe fn new(host: &'a mut H, quota: Q) -> Self
unsafe fn new(host: &'a mut H, quota: Q) -> Self
§Safety
Registered storage and kernel identities remain valid for this driver’s flights.
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".