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
impl Copy for ElevatorState
Source§impl Debug for ElevatorState
impl Debug for ElevatorState
Source§impl Default for ElevatorState
impl Default for ElevatorState
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
impl Eq for ElevatorState
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 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 UnsafeUnpin 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<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§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.