pub enum EventData3Type {
Unspecified,
TriggerThreshold(NonMaxU8),
OemCode(NonMaxU8),
SensorSpecific(NonMaxU8),
}Expand description
Event data byte 3 availability/format (from event_data[0] bits [7:6])
Variants§
Unspecified
Unspecified (00b)
TriggerThreshold(NonMaxU8)
Trigger threshold value in byte 3 (01b)
OemCode(NonMaxU8)
OEM code in byte 3 (10b)
SensorSpecific(NonMaxU8)
Sensor-specific extension code in byte 3 (11b)
Implementations§
Source§impl EventData3Type
impl EventData3Type
Sourcepub fn is_unspecified(&self) -> bool
pub fn is_unspecified(&self) -> bool
Returns true when the data byte does not carry useful data.
Trait Implementations§
Source§impl Clone for EventData3Type
impl Clone for EventData3Type
Source§fn clone(&self) -> EventData3Type
fn clone(&self) -> EventData3Type
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 EventData3Type
impl Debug for EventData3Type
Source§impl Display for EventData3Type
impl Display for EventData3Type
Source§impl PartialEq for EventData3Type
impl PartialEq for EventData3Type
impl Copy for EventData3Type
impl StructuralPartialEq for EventData3Type
Auto Trait Implementations§
impl Freeze for EventData3Type
impl RefUnwindSafe for EventData3Type
impl Send for EventData3Type
impl Sync for EventData3Type
impl Unpin for EventData3Type
impl UnwindSafe for EventData3Type
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