#[repr(i8)]pub enum mxr_tribool_t {
MXR_UNKNOWN = -1,
MXR_FALSE = 0,
MXR_TRUE = 1,
}Expand description
A flag a device may not have reported.
Firmware sends only what it has, so “off” and “never said” are different answers and a two-valued flag would have to pick one of them for both.
Variants§
MXR_UNKNOWN = -1
The device has not reported this.
MXR_FALSE = 0
Reported, and false.
MXR_TRUE = 1
Reported, and true.
Trait Implementations§
Source§impl Clone for mxr_tribool_t
impl Clone for mxr_tribool_t
Source§fn clone(&self) -> mxr_tribool_t
fn clone(&self) -> mxr_tribool_t
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for mxr_tribool_t
Source§impl Debug for mxr_tribool_t
impl Debug for mxr_tribool_t
impl Eq for mxr_tribool_t
Source§impl PartialEq for mxr_tribool_t
impl PartialEq for mxr_tribool_t
impl StructuralPartialEq for mxr_tribool_t
Auto Trait Implementations§
impl Freeze for mxr_tribool_t
impl RefUnwindSafe for mxr_tribool_t
impl Send for mxr_tribool_t
impl Sync for mxr_tribool_t
impl Unpin for mxr_tribool_t
impl UnsafeUnpin for mxr_tribool_t
impl UnwindSafe for mxr_tribool_t
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