Enum locodrive::args::SensorLevel
source · pub enum SensorLevel {
High,
Low,
}
Expand description
A sensors detection state
Variants§
High
The sensor detects some energy flow (sensor on)
Low
The sensor detects no energy flow (sensor off)
Trait Implementations§
source§impl Clone for SensorLevel
impl Clone for SensorLevel
source§fn clone(&self) -> SensorLevel
fn clone(&self) -> SensorLevel
Returns a copy 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 SensorLevel
impl Debug for SensorLevel
source§impl Hash for SensorLevel
impl Hash for SensorLevel
source§impl Not for SensorLevel
impl Not for SensorLevel
source§impl PartialEq for SensorLevel
impl PartialEq for SensorLevel
impl Copy for SensorLevel
impl Eq for SensorLevel
impl StructuralPartialEq for SensorLevel
Auto Trait Implementations§
impl Freeze for SensorLevel
impl RefUnwindSafe for SensorLevel
impl Send for SensorLevel
impl Sync for SensorLevel
impl Unpin for SensorLevel
impl UnwindSafe for SensorLevel
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,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)