[][src]Struct stateright::actor::ActorOutputVec

pub struct ActorOutputVec<Id, Msg>(pub Vec<ActorOutput<Id, Msg>>);

We create a wrapper type so we can add convenience methods.

Methods

impl<Id, Msg> ActorOutputVec<Id, Msg>[src]

pub fn send(&mut self, dst: Id, msg: Msg)[src]

pub fn broadcast(&mut self, dsts: &[Id], msg: &Msg) where
    Id: Clone,
    Msg: Clone
[src]

Trait Implementations

impl<Id: Clone, Msg: Clone> Clone for ActorOutputVec<Id, Msg>[src]

impl<Id: Debug, Msg: Debug> Debug for ActorOutputVec<Id, Msg>[src]

Auto Trait Implementations

impl<Id, Msg> RefUnwindSafe for ActorOutputVec<Id, Msg> where
    Id: RefUnwindSafe,
    Msg: RefUnwindSafe

impl<Id, Msg> Send for ActorOutputVec<Id, Msg> where
    Id: Send,
    Msg: Send

impl<Id, Msg> Sync for ActorOutputVec<Id, Msg> where
    Id: Sync,
    Msg: Sync

impl<Id, Msg> Unpin for ActorOutputVec<Id, Msg> where
    Id: Unpin,
    Msg: Unpin

impl<Id, Msg> UnwindSafe for ActorOutputVec<Id, Msg> where
    Id: UnwindSafe,
    Msg: UnwindSafe

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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>,