[][src]Trait ak::actor::Handler

pub trait Handler<M: Message>: Actor {
    type Future: Future<Output = M::Result> + 'static;
    fn handle(self: ContextRef<Self>, msg: M) -> Self::Future;
}

Associated Types

type Future: Future<Output = M::Result> + 'static

Loading content...

Required methods

fn handle(self: ContextRef<Self>, msg: M) -> Self::Future

Loading content...

Implementors

Loading content...