[][src]Trait kompact::prelude::Dispatcher

pub trait Dispatcher: ActorRaw<Message = DispatchEnvelope> {
    fn system_path(&mut self) -> SystemPath;
}

A dispatcher is a system component that knows how to route messages and create system paths

If you need a custom networking implementation, it must implement Dispatcher to allow messages to be routed correctly to channels, for example.

See NetworkDispatcher for the provided networking dispatcher solution.

Required methods

fn system_path(&mut self) -> SystemPath

Returns the system path for this dispatcher

Loading content...

Implementors

impl Dispatcher for LocalDispatcher[src]

impl Dispatcher for NetworkDispatcher[src]

fn system_path(&mut self) -> SystemPath[src]

Generates a SystemPath from this dispatcher's configuration

This is only possible after the socket is bound and will panic if attempted earlier!

Loading content...