pub struct PhaseTransition {
pub from: String,
pub to: String,
pub turn: u32,
pub timestamp: Instant,
pub trigger: TransitionTrigger,
pub duration_in_phase: Duration,
}Expand description
Record of a single phase transition for history/debugging.
Fields§
§from: StringPhase we left.
to: StringPhase we entered.
turn: u32Turn number at the time of transition.
timestamp: InstantWall-clock instant of the transition.
trigger: TransitionTriggerWhat caused this transition.
duration_in_phase: DurationHow long the machine spent in the source phase before transitioning.
Auto Trait Implementations§
impl Freeze for PhaseTransition
impl RefUnwindSafe for PhaseTransition
impl Send for PhaseTransition
impl Sync for PhaseTransition
impl Unpin for PhaseTransition
impl UnwindSafe for PhaseTransition
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