Recv

Trait Recv 

Source
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§

Required Methods§

Source

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.

Implementors§