Handler

Trait Handler 

Source
pub trait Handler<T: Message>: Actor {
    // Required method
    fn handle_message(&self, message: T) -> T::Result;
}
Expand description

§Handler`

Implement this trait for all actors that wish to recieve the message T.

Required Methods§

Source

fn handle_message(&self, message: T) -> T::Result

Implementors§