Enum total_space::Action [−][src]
Specify an action the agent may take when handling an event.
Variants
Defer the event, keep the state the same, do not send any messages.
This is only useful if it is needed to be listed as an alternative with other actions;
Otherwise, use the Reaction.Defer
value.
This is only allowed if the agent’s state_is_deferring
, waiting for
specific message(s) to resume normal operations.
Consume (ignore) the event, keep the state the same, do not send any messages.
This is only useful if it is needed to be listed as an alternative with other actions;
Otherwise, use the Reaction.Ignore
value.
Consume (handle) the event, change the agent state, do not send any messages.
Send1(Emit<Payload>)
Consume (handle) the event, keep the state the same, send a single message.
ChangeAndSend1(State, Emit<Payload>)
Consume (handle) the event, change the agent state, send a single message.
Consume (handle) the event, keep the state the same, send multiple messages.
Consume (handle) the event, change the agent state, send multiple messages.
Trait Implementations
impl<State: Clone + KeyLike, Payload: Clone + DataLike> Clone for Action<State, Payload>
[src]
impl<State: Copy + KeyLike, Payload: Copy + DataLike> Copy for Action<State, Payload>
[src]
impl<State: Debug + KeyLike, Payload: Debug + DataLike> Debug for Action<State, Payload>
[src]
impl<State: Eq + KeyLike, Payload: Eq + DataLike> Eq for Action<State, Payload>
[src]
impl<State: PartialEq + KeyLike, Payload: PartialEq + DataLike> PartialEq<Action<State, Payload>> for Action<State, Payload>
[src]
fn eq(&self, other: &Action<State, Payload>) -> bool
[src]
fn ne(&self, other: &Action<State, Payload>) -> bool
[src]
impl<State: KeyLike, Payload: DataLike> StructuralEq for Action<State, Payload>
[src]
impl<State: KeyLike, Payload: DataLike> StructuralPartialEq for Action<State, Payload>
[src]
Auto Trait Implementations
impl<State, Payload> RefUnwindSafe for Action<State, Payload> where
Payload: RefUnwindSafe,
State: RefUnwindSafe,
Payload: RefUnwindSafe,
State: RefUnwindSafe,
impl<State, Payload> Send for Action<State, Payload> where
Payload: Send,
State: Send,
Payload: Send,
State: Send,
impl<State, Payload> Sync for Action<State, Payload> where
Payload: Sync,
State: Sync,
Payload: Sync,
State: Sync,
impl<State, Payload> Unpin for Action<State, Payload> where
Payload: Unpin,
State: Unpin,
Payload: Unpin,
State: Unpin,
impl<State, Payload> UnwindSafe for Action<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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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>,