#[non_exhaustive]pub enum Phase {
AdvanceTransient,
Dispatch,
Movement,
Doors,
Loading,
Reposition,
Metrics,
}Expand description
Simulation phase identifier for hook registration.
Each variant corresponds to one phase in the tick loop. Hooks registered for a phase run immediately before or after that phase executes.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
AdvanceTransient
Advance transient rider states (Boarding→Riding, Exiting→Arrived).
Dispatch
Assign idle elevators to stops via dispatch strategy.
Movement
Update elevator position and velocity.
Doors
Tick door finite-state machines.
Loading
Board and exit riders.
Reposition
Reposition idle elevators for better coverage.
Metrics
Aggregate metrics from tick events.
Trait Implementations§
impl Copy for Phase
impl Eq for Phase
impl StructuralPartialEq for Phase
Auto Trait Implementations§
impl Freeze for Phase
impl RefUnwindSafe for Phase
impl Send for Phase
impl Sync for Phase
impl Unpin for Phase
impl UnsafeUnpin for Phase
impl UnwindSafe for Phase
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