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 FnMut(C::Event, &mut H) -> ControlFlow<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 FnMut(C::Event, &mut H) -> ControlFlow<C::Event>, ) -> C::Dispatch
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".