Enum total_space::Reaction [−][src]
The reaction of an agent to receiving a message.
Variants
Indicate an unexpected event.
Defer handling the event.
This has the same effect as Do1(Action.Defer)
.
Ignore the event.
This has the same effect as Do1(Action.Ignore)
.
Do1(Action<State, Payload>)
A single action (deterministic).
One of several alternative actions (non-deterministic).
Trait Implementations
impl<State: Debug + KeyLike, Payload: Debug + DataLike> Debug for Reaction<State, Payload>
[src]
impl<State: Eq + KeyLike, Payload: Eq + DataLike> Eq for Reaction<State, Payload>
[src]
impl<State: PartialEq + KeyLike, Payload: PartialEq + DataLike> PartialEq<Reaction<State, Payload>> for Reaction<State, Payload>
[src]
fn eq(&self, other: &Reaction<State, Payload>) -> bool
[src]
fn ne(&self, other: &Reaction<State, Payload>) -> bool
[src]
impl<State: KeyLike, Payload: DataLike> StructuralEq for Reaction<State, Payload>
[src]
impl<State: KeyLike, Payload: DataLike> StructuralPartialEq for Reaction<State, Payload>
[src]
Auto Trait Implementations
impl<State, Payload> RefUnwindSafe for Reaction<State, Payload> where
Payload: RefUnwindSafe,
State: RefUnwindSafe,
Payload: RefUnwindSafe,
State: RefUnwindSafe,
impl<State, Payload> Send for Reaction<State, Payload> where
Payload: Send,
State: Send,
Payload: Send,
State: Send,
impl<State, Payload> Sync for Reaction<State, Payload> where
Payload: Sync,
State: Sync,
Payload: Sync,
State: Sync,
impl<State, Payload> Unpin for Reaction<State, Payload> where
Payload: Unpin,
State: Unpin,
Payload: Unpin,
State: Unpin,
impl<State, Payload> UnwindSafe for Reaction<State, Payload> where
Payload: UnwindSafe,
State: UnwindSafe,
Payload: UnwindSafe,
State: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,