#[non_exhaustive]pub enum RiderPhaseKind {
Waiting,
Boarding,
Riding,
Exiting,
Walking,
Arrived,
Abandoned,
Resident,
}Expand description
Data-less companion to RiderPhase for error messages and pattern matching
without requiring the inner EntityId.
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.
Waiting
Waiting at a stop.
Boarding
Boarding an elevator.
Riding
Riding in an elevator.
Exiting
Exiting an elevator.
Walking
Walking between transfer stops.
Arrived
Reached final destination.
Abandoned
Gave up waiting.
Resident
Parked at a stop.
Trait Implementations§
Source§impl Clone for RiderPhaseKind
impl Clone for RiderPhaseKind
Source§fn clone(&self) -> RiderPhaseKind
fn clone(&self) -> RiderPhaseKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RiderPhaseKind
impl Debug for RiderPhaseKind
Source§impl<'de> Deserialize<'de> for RiderPhaseKind
impl<'de> Deserialize<'de> for RiderPhaseKind
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 RiderPhaseKind
impl Display for RiderPhaseKind
Source§impl PartialEq for RiderPhaseKind
impl PartialEq for RiderPhaseKind
Source§fn eq(&self, other: &RiderPhaseKind) -> bool
fn eq(&self, other: &RiderPhaseKind) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RiderPhaseKind
impl Serialize for RiderPhaseKind
impl Copy for RiderPhaseKind
impl Eq for RiderPhaseKind
impl StructuralPartialEq for RiderPhaseKind
Auto Trait Implementations§
impl Freeze for RiderPhaseKind
impl RefUnwindSafe for RiderPhaseKind
impl Send for RiderPhaseKind
impl Sync for RiderPhaseKind
impl Unpin for RiderPhaseKind
impl UnsafeUnpin for RiderPhaseKind
impl UnwindSafe for RiderPhaseKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.