#[repr(u8)]pub enum ValveState {
Closed = 0,
Open = 1,
Transitioning = 2,
}Variants§
Closed = 0
Valve is in closed position
Open = 1
Valve is in open position
Transitioning = 2
Valve is transitioning between closed and open positions or between levels
Implementations§
Trait Implementations§
Source§impl Clone for ValveState
impl Clone for ValveState
Source§fn clone(&self) -> ValveState
fn clone(&self) -> ValveState
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 ValveState
impl Debug for ValveState
Source§impl<'de> Deserialize<'de> for ValveState
impl<'de> Deserialize<'de> for ValveState
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 From<ValveState> for u8
impl From<ValveState> for u8
Source§fn from(val: ValveState) -> Self
fn from(val: ValveState) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ValveState
impl PartialEq for ValveState
Source§impl Serialize for ValveState
impl Serialize for ValveState
impl Copy for ValveState
impl Eq for ValveState
impl StructuralPartialEq for ValveState
Auto Trait Implementations§
impl Freeze for ValveState
impl RefUnwindSafe for ValveState
impl Send for ValveState
impl Sync for ValveState
impl Unpin for ValveState
impl UnwindSafe for ValveState
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