HandleSync

Trait HandleSync 

Source
pub trait HandleSync<M>: Sync {
    type Replay: Send + 'static;

    // Required method
    fn handle(&mut self, msg: M) -> Self::Replay;

    // Provided method
    fn is_blocking(&self, _msg: &M) -> bool { ... }
}

Required Associated Types§

Source

type Replay: Send + 'static

Required Methods§

Source

fn handle(&mut self, msg: M) -> Self::Replay

Provided Methods§

Source

fn is_blocking(&self, _msg: &M) -> bool

Implementors§

Source§

impl<T> HandleSync<()> for T
where T: Sync,