[][src]Trait quix::process::ProcessDispatch

pub trait ProcessDispatch: Actor<Context = Process<Self>> {
    fn make_dispatcher(addr: WeakAddr<Self>) -> Box<dyn Dispatcher>;
}

Trait which must be implemented for all processes.

The implementation of this trait is responsible for serializing/deserializing messages into proper structures, and should by implemnted by using the proc macro

Required methods

fn make_dispatcher(addr: WeakAddr<Self>) -> Box<dyn Dispatcher>

Loading content...

Implementors

Loading content...