pub trait DispatchEvent<Ctx> {
type Error;
type Future<'s>: Future<Output = Result<StreamEvents, Self::Error>>
where Self: 's,
Ctx: 's;
// Required method
fn dispatch_event<'s>(
&'s mut self,
ev: Event,
ctx: &'s mut Ctx,
) -> Result<Self::Future<'s>, (Event, &'s mut Ctx)>;
}Required Associated Types§
type Error
type Future<'s>: Future<Output = Result<StreamEvents, Self::Error>> where Self: 's, Ctx: 's
Required Methods§
fn dispatch_event<'s>( &'s mut self, ev: Event, ctx: &'s mut Ctx, ) -> Result<Self::Future<'s>, (Event, &'s mut Ctx)>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.