#[repr(u8)]pub enum EcamMachineState {
StandBy = 0,
TurningOn = 1,
ShuttingDown = 2,
Descaling = 4,
SteamPreparation = 5,
Recovery = 6,
ReadyOrDispensing = 7,
Rinsing = 8,
MilkPreparation = 10,
HotWaterDelivery = 11,
MilkCleaning = 12,
ChocolatePreparation = 16,
}Expand description
The current state of the machine.
Variants§
StandBy = 0
TurningOn = 1
ShuttingDown = 2
Descaling = 4
SteamPreparation = 5
Recovery = 6
ReadyOrDispensing = 7
Rinsing = 8
MilkPreparation = 10
HotWaterDelivery = 11
MilkCleaning = 12
ChocolatePreparation = 16
Trait Implementations§
Source§impl Clone for EcamMachineState
impl Clone for EcamMachineState
Source§fn clone(&self) -> EcamMachineState
fn clone(&self) -> EcamMachineState
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 EcamMachineState
impl Debug for EcamMachineState
Source§impl From<EcamMachineState> for u8
impl From<EcamMachineState> for u8
Source§fn from(enum_value: EcamMachineState) -> Self
fn from(enum_value: EcamMachineState) -> Self
Converts to this type from the input type.
Source§impl Hash for EcamMachineState
impl Hash for EcamMachineState
Source§impl MachineEnumerable<EcamMachineState> for EcamMachineState
impl MachineEnumerable<EcamMachineState> for EcamMachineState
Source§fn all_values() -> &'static [EcamMachineState]
fn all_values() -> &'static [EcamMachineState]
Return a static slice of all possible enumeration values, useful for iteration.
Source§fn to_arg_string(&self) -> String
fn to_arg_string(&self) -> String
Generate the argument-style string for this enum. Ideally we’d use a &str, but the appropriate methods
are not const at this time.
fn lookup_by_name_case_insensitive(s: &str) -> Option<EcamMachineState>
fn lookup_by_name(s: &str) -> Option<EcamMachineState>
Source§impl Ord for EcamMachineState
impl Ord for EcamMachineState
Source§fn cmp(&self, other: &EcamMachineState) -> Ordering
fn cmp(&self, other: &EcamMachineState) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for EcamMachineState
impl PartialEq for EcamMachineState
Source§impl PartialOrd for EcamMachineState
impl PartialOrd for EcamMachineState
Source§impl TryFrom<u8> for EcamMachineState
impl TryFrom<u8> for EcamMachineState
Source§type Error = TryFromPrimitiveError<EcamMachineState>
type Error = TryFromPrimitiveError<EcamMachineState>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for EcamMachineState
impl TryFromPrimitive for EcamMachineState
const NAME: &'static str = "EcamMachineState"
type Primitive = u8
type Error = TryFromPrimitiveError<EcamMachineState>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for EcamMachineState
impl Eq for EcamMachineState
impl StructuralPartialEq for EcamMachineState
Auto Trait Implementations§
impl Freeze for EcamMachineState
impl RefUnwindSafe for EcamMachineState
impl Send for EcamMachineState
impl Sync for EcamMachineState
impl Unpin for EcamMachineState
impl UnwindSafe for EcamMachineState
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