Struct communication::actor::CommunicationActor[][src]

pub struct CommunicationActor<Req, Res, ClientMsg, P> where
    Req: MessageEvent + ToPermissionVariants<P> + Into<ClientMsg>,
    Res: MessageEvent,
    ClientMsg: Message,
    P: Message + VariantPermission
{ /* fields omitted */ }

Actor responsible for creating a [P2PNetworkBehaviour] and handling all interaction with the Swarm. For each received CommunicationRequest, a CommunicationResults is returned to the sender.

Trait Implementations

impl<Req, Res, ClientMsg, P> Actor for CommunicationActor<Req, Res, ClientMsg, P> where
    Req: MessageEvent + ToPermissionVariants<P> + Into<ClientMsg>,
    Res: MessageEvent,
    ClientMsg: Message,
    P: Message + VariantPermission
[src]

type Msg = CommunicationRequest<Req, ClientMsg>

impl<Req, Res, ClientMsg, P> ActorFactoryArgs<(Keypair, CommunicationActorConfig<ClientMsg>, BehaviourConfig)> for CommunicationActor<Req, Res, ClientMsg, P> where
    Req: MessageEvent + ToPermissionVariants<P> + Into<ClientMsg>,
    Res: MessageEvent,
    ClientMsg: Message,
    P: Message + VariantPermission
[src]

Auto Trait Implementations

impl<Req, Res, ClientMsg, P> !RefUnwindSafe for CommunicationActor<Req, Res, ClientMsg, P>

impl<Req, Res, ClientMsg, P> Send for CommunicationActor<Req, Res, ClientMsg, P>

impl<Req, Res, ClientMsg, P> Sync for CommunicationActor<Req, Res, ClientMsg, P> where
    P: Sync

impl<Req, Res, ClientMsg, P> Unpin for CommunicationActor<Req, Res, ClientMsg, P> where
    P: Unpin,
    Res: Unpin

impl<Req, Res, ClientMsg, P> !UnwindSafe for CommunicationActor<Req, Res, ClientMsg, P>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,