pub enum ActuatorState {
On,
Off,
Undefined,
}Expand description
Enum is used for representing the relay states.
Variants§
On
The actuator is on.
Off
The actuator is off.
Undefined
The application has not yet sent a command to the actuator.
Trait Implementations§
Source§impl Debug for ActuatorState
impl Debug for ActuatorState
Source§impl PartialEq for ActuatorState
impl PartialEq for ActuatorState
impl StructuralPartialEq for ActuatorState
Auto Trait Implementations§
impl Freeze for ActuatorState
impl RefUnwindSafe for ActuatorState
impl Send for ActuatorState
impl Sync for ActuatorState
impl Unpin for ActuatorState
impl UnwindSafe for ActuatorState
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