#[repr(u8)]pub enum BitState {
Off = 0,
On = 1,
}Expand description
Bit addressable modbus data item state helper type.
This enum works similiar to bool but adds some helper functionality
Variants§
Implementations§
Trait Implementations§
impl Copy for BitState
impl Eq for BitState
Source§impl Ord for BitState
impl Ord for BitState
1.21.0 (const: unstable) · 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 PartialOrd for BitState
impl PartialOrd for BitState
impl StructuralPartialEq for BitState
Auto Trait Implementations§
impl Freeze for BitState
impl RefUnwindSafe for BitState
impl Send for BitState
impl Sync for BitState
impl Unpin for BitState
impl UnsafeUnpin for BitState
impl UnwindSafe for BitState
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