#[non_exhaustive]pub enum ServiceMode {
Normal,
Independent,
Inspection,
}Expand description
Operational service mode for an elevator, orthogonal to ElevatorPhase.
Normal is the default. Modes modify how simulation phases behave without
replacing ElevatorPhase — an elevator in Independent mode can still
be Idle or MovingToStop.
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.
Normal
Normal operation: dispatch assigns stops, doors auto-cycle.
Independent
Independent mode: elevator is excluded from dispatch and repositioning. Consumer controls movement via direct API calls.
Inspection
Inspection mode: reduced speed, doors hold open indefinitely.
Speed is reduced by Elevator::inspection_speed_factor.
Trait Implementations§
Source§impl Clone for ServiceMode
impl Clone for ServiceMode
Source§fn clone(&self) -> ServiceMode
fn clone(&self) -> ServiceMode
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 moreSource§impl Debug for ServiceMode
impl Debug for ServiceMode
Source§impl Default for ServiceMode
impl Default for ServiceMode
Source§fn default() -> ServiceMode
fn default() -> ServiceMode
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ServiceMode
impl<'de> Deserialize<'de> for ServiceMode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ServiceMode
impl Display for ServiceMode
Source§impl Hash for ServiceMode
impl Hash for ServiceMode
Source§impl PartialEq for ServiceMode
impl PartialEq for ServiceMode
Source§impl Serialize for ServiceMode
impl Serialize for ServiceMode
impl Copy for ServiceMode
impl Eq for ServiceMode
impl StructuralPartialEq for ServiceMode
Auto Trait Implementations§
impl Freeze for ServiceMode
impl RefUnwindSafe for ServiceMode
impl Send for ServiceMode
impl Sync for ServiceMode
impl Unpin for ServiceMode
impl UnsafeUnpin for ServiceMode
impl UnwindSafe for ServiceMode
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