Skip to main content

Handler

Trait Handler 

Source
pub trait Handler<M, R>: Send + Sync {
    // Required method
    fn handle(&mut self, message: M) -> Result<R, ActorError>;
}
Expand description

Handler trait for processing messages

Required Methods§

Source

fn handle(&mut self, message: M) -> Result<R, ActorError>

Implementors§