pub trait Recv: 'static + Send {
type EventType;
type ContextType;
// Required method
fn handle(
&self,
event: Self::EventType,
context: &Self::ContextType,
) -> impl Future<Output = ()> + Send;
}Required Associated Types§
type EventType
type ContextType
Required Methods§
fn handle( &self, event: Self::EventType, context: &Self::ContextType, ) -> impl Future<Output = ()> + Send
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.