Delegate

Trait Delegate 

Source
pub trait Delegate:
    Send
    + Sync
    + 'static { }
Expand description

§Delegate

A Delegate is a struct that serves as an interface between one Fluxion instance and every other instance. A Delegate’s role is simply to provide the Fluxion instance with an implementor of [ActorRef] for a given actor ID, and nothing more. This implementation of [ActorRef] may wrap a channel, network connection, or simply another [ActorRef]. All that matters is that this [ActorRef] refers to a foreign actor on the given system with the given id. The Delegate should return None if no actor with the given ID can be found or is local.

Implementations on Foreign Types§

Source§

impl Delegate for ()

Source§

impl<D: Delegate> Delegate for Arc<D>

Implementors§