pub enum Activity<Payload: DataLike> {
Passive,
Process1(Payload),
Process1Of([Option<Payload>; 6]),
}
Expand description
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: Eq + DataLike> Eq for Activity<Payload>
impl<Payload: DataLike> StructuralPartialEq for Activity<Payload>
Auto Trait Implementations§
impl<Payload> Freeze for Activity<Payload>where
Payload: Freeze,
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§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more