Enum total_space::Activity[][src]

pub enum Activity<Payload: DataLike> {
    Passive,
    Process1(Payload),
    Process1Of([Option<Payload>; 6]),
}

The reaction of an agent to time passing.

Variants

Passive

The agent is passive, will only respond to a message.

Process1(Payload)

The agent activity generates a message, to be delivered to it for processing.

Process1Of([Option<Payload>; 6])

The agent activity generates one of several messages, to be delivered to it for processing.

Trait Implementations

impl<Payload: Debug + DataLike> Debug for Activity<Payload>[src]

impl<Payload: Eq + DataLike> Eq for Activity<Payload>[src]

impl<Payload: PartialEq + DataLike> PartialEq<Activity<Payload>> for Activity<Payload>[src]

impl<Payload: DataLike> StructuralEq for Activity<Payload>[src]

impl<Payload: DataLike> StructuralPartialEq for Activity<Payload>[src]

Auto Trait Implementations

impl<Payload> RefUnwindSafe for Activity<Payload> where
    Payload: RefUnwindSafe

impl<Payload> Send for Activity<Payload> where
    Payload: Send

impl<Payload> Sync for Activity<Payload> where
    Payload: Sync

impl<Payload> Unpin for Activity<Payload> where
    Payload: Unpin

impl<Payload> UnwindSafe for Activity<Payload> where
    Payload: 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.