pub struct Transition<S, E, C>{
pub(crate) from: S,
pub(crate) to: S,
pub(crate) event: E,
pub(crate) condition: Option<Condition<S, E, C>>,
pub(crate) action: Option<Action<S, E, C>>,
pub(crate) transition_type: TransitionType,
pub(crate) priority: u32,
}Expand description
Represents a transition in the state machine
Fields§
§from: S§to: S§event: E§condition: Option<Condition<S, E, C>>§action: Option<Action<S, E, C>>§transition_type: TransitionType§priority: u32Trait Implementations§
Auto Trait Implementations§
impl<S, E, C> Freeze for Transition<S, E, C>
impl<S, E, C> !RefUnwindSafe for Transition<S, E, C>
impl<S, E, C> Send for Transition<S, E, C>
impl<S, E, C> Sync for Transition<S, E, C>
impl<S, E, C> Unpin for Transition<S, E, C>
impl<S, E, C> !UnwindSafe for Transition<S, E, C>
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)