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