Trait messagebus::Handler[][src]

pub trait Handler<M: Message>: Send + Sync {
    fn handle(&self, msg: M, bus: &Bus) -> Result<()>;

    fn sync(&self, _bus: &Bus) -> Result<()> { ... }
}

Required methods

fn handle(&self, msg: M, bus: &Bus) -> Result<()>[src]

Loading content...

Provided methods

fn sync(&self, _bus: &Bus) -> Result<()>[src]

Loading content...

Implementors

Loading content...