pub enum ElevatorState {
Idle,
Called,
Arriving,
DoorsOpen,
Boarding,
InTransit,
Arrived,
}Expand description
Elevator state.
Variants§
Idle
Elevator idle
Called
Elevator called
Arriving
Elevator arriving
DoorsOpen
Doors open, ready to board
Boarding
Robot boarding
InTransit
In transit
Arrived
Arrived at floor
Trait Implementations§
Source§impl Clone for ElevatorState
impl Clone for ElevatorState
Source§fn clone(&self) -> ElevatorState
fn clone(&self) -> ElevatorState
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 ElevatorState
impl Debug for ElevatorState
Source§impl Default for ElevatorState
impl Default for ElevatorState
Source§fn default() -> ElevatorState
fn default() -> ElevatorState
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ElevatorState
impl<'de> Deserialize<'de> for ElevatorState
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 Hash for ElevatorState
impl Hash for ElevatorState
Source§impl PartialEq for ElevatorState
impl PartialEq for ElevatorState
Source§impl Serialize for ElevatorState
impl Serialize for ElevatorState
impl Copy for ElevatorState
impl Eq for ElevatorState
impl StructuralPartialEq for ElevatorState
Auto Trait Implementations§
impl Freeze for ElevatorState
impl RefUnwindSafe for ElevatorState
impl Send for ElevatorState
impl Sync for ElevatorState
impl Unpin for ElevatorState
impl UnwindSafe for ElevatorState
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.