pub enum TrainStatus {
Enroute,
Station,
Departed,
Unknown,
}
Expand description
Variants§
Enroute
The train has not yet arrived at the specified station.
Station
The train is currently at the specified station.
Departed
The train has already arrived at departed from teh specified station.
Unknown
The status of the train is unknown
Trait Implementations§
Source§impl Clone for TrainStatus
impl Clone for TrainStatus
Source§fn clone(&self) -> TrainStatus
fn clone(&self) -> TrainStatus
Returns a copy 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 TrainStatus
impl Debug for TrainStatus
Source§impl<'de> Deserialize<'de> for TrainStatus
impl<'de> Deserialize<'de> for TrainStatus
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 PartialEq for TrainStatus
impl PartialEq for TrainStatus
impl Copy for TrainStatus
impl Eq for TrainStatus
impl StructuralPartialEq for TrainStatus
Auto Trait Implementations§
impl Freeze for TrainStatus
impl RefUnwindSafe for TrainStatus
impl Send for TrainStatus
impl Sync for TrainStatus
impl Unpin for TrainStatus
impl UnwindSafe for TrainStatus
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.