Enum stateright::actor::Command[][src]

pub enum Command<Msg> {
    CancelTimer,
    SetTimer(Range<Duration>),
    Send(Id, Msg),
}

Commands with which an actor can respond.

Variants

CancelTimer

Cancel the timer if one is set.

SetTimer(Range<Duration>)

Set/reset the timer.

Send(Id, Msg)

Send a message to a destination.

Trait Implementations

impl<Msg: Debug> Debug for Command<Msg>[src]

impl<A: Actor> FromIterator<Command<<A as Actor>::Msg>> for Out<A>[src]

impl<Msg> Serialize for Command<Msg> where
    Msg: Serialize
[src]

Auto Trait Implementations

impl<Msg> RefUnwindSafe for Command<Msg> where
    Msg: RefUnwindSafe

impl<Msg> Send for Command<Msg> where
    Msg: Send

impl<Msg> Sync for Command<Msg> where
    Msg: Sync

impl<Msg> Unpin for Command<Msg> where
    Msg: Unpin

impl<Msg> UnwindSafe for Command<Msg> where
    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, 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>,