pub struct StateTransitionEffectData<'a, TEvent, TState, TData> {
pub name: &'a Option<String>,
pub event: &'a TEvent,
pub data: &'a TData,
pub from: &'a TState,
pub to: &'a TState,
}
Expand description
Data passed to a Transition Effect callback.
Fields§
§name: &'a Option<String>
The name of the transition, if any.
event: &'a TEvent
The event causing this transition to occur.
data: &'a TData
The current data associated with the State Machine.
from: &'a TState
The state that is being transitioned from.
to: &'a TState
The state that is being transitioned into.
Trait Implementations§
Source§impl<'a, TEvent: Clone, TState: Clone, TData: Clone> Clone for StateTransitionEffectData<'a, TEvent, TState, TData>
impl<'a, TEvent: Clone, TState: Clone, TData: Clone> Clone for StateTransitionEffectData<'a, TEvent, TState, TData>
Source§fn clone(&self) -> StateTransitionEffectData<'a, TEvent, TState, TData>
fn clone(&self) -> StateTransitionEffectData<'a, TEvent, TState, TData>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<'a, TEvent, TState, TData> Freeze for StateTransitionEffectData<'a, TEvent, TState, TData>
impl<'a, TEvent, TState, TData> RefUnwindSafe for StateTransitionEffectData<'a, TEvent, TState, TData>
impl<'a, TEvent, TState, TData> Send for StateTransitionEffectData<'a, TEvent, TState, TData>
impl<'a, TEvent, TState, TData> Sync for StateTransitionEffectData<'a, TEvent, TState, TData>
impl<'a, TEvent, TState, TData> Unpin for StateTransitionEffectData<'a, TEvent, TState, TData>
impl<'a, TEvent, TState, TData> UnwindSafe for StateTransitionEffectData<'a, TEvent, TState, TData>
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