[][src]Trait act_zero::Handle

pub trait Handle<M: Send + 'static>: Send + Sync + 'static {
    fn handle(&self, msg: M);
}

This type is automatically implemented for local actors which implement the actor trait corresponding to the message type M.

Required methods

fn handle(&self, msg: M)

Handle the message

Loading content...

Implementors

impl<M: Send + 'static, T: Handle<M>> Handle<M> for Addr<T>[src]

impl<M: Send + 'static, T: Handle<M>> Handle<M> for WeakAddr<T>[src]

Loading content...