Struct TransitionRecord
pub struct TransitionRecord<S> {
pub sequence: u64,
pub cause: Option<&'static str>,
pub transition: Transition<S>,
}Expand description
An owned observation of a committed transition, retained in commit order.
See StateMachine::set_trace_capacity for a complete usage example.
Fields§
§sequence: u64Machine-wide successful commit count, starting at one and saturating at
u64::MAX. Includes commits made while tracing was disabled.
cause: Option<&'static str>Request label, or None for an unlabeled request/replacement.
transition: Transition<S>Owned copies of the old and new states.
Trait Implementations§
§impl<S> Clone for TransitionRecord<S>where
S: Clone,
impl<S> Clone for TransitionRecord<S>where
S: Clone,
§fn clone(&self) -> TransitionRecord<S>
fn clone(&self) -> TransitionRecord<S>
Returns a duplicate 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 more§impl<S> Debug for TransitionRecord<S>where
S: Debug,
impl<S> Debug for TransitionRecord<S>where
S: Debug,
§impl<S> PartialEq for TransitionRecord<S>where
S: PartialEq,
impl<S> PartialEq for TransitionRecord<S>where
S: PartialEq,
impl<S> Eq for TransitionRecord<S>where
S: Eq,
impl<S> StructuralPartialEq for TransitionRecord<S>
Auto Trait Implementations§
impl<S> Freeze for TransitionRecord<S>where
S: Freeze,
impl<S> RefUnwindSafe for TransitionRecord<S>where
S: RefUnwindSafe,
impl<S> Send for TransitionRecord<S>where
S: Send,
impl<S> Sync for TransitionRecord<S>where
S: Sync,
impl<S> Unpin for TransitionRecord<S>where
S: Unpin,
impl<S> UnwindSafe for TransitionRecord<S>where
S: 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