pub enum EventData2Type {
Unspecified,
TriggerReading(NonMaxU8),
OemCode(NonMaxU8),
SensorSpecific(NonMaxU8),
}Expand description
Event data byte 2 availability/format (from event_data[0] bits [5:4])
Variants§
Unspecified
Unspecified (00b)
TriggerReading(NonMaxU8)
Trigger reading in byte 2 (01b)
OemCode(NonMaxU8)
OEM code in byte 2 (10b)
SensorSpecific(NonMaxU8)
Sensor-specific extension code in byte 2 (11b)
Implementations§
Source§impl EventData2Type
impl EventData2Type
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 EventData2Type
impl Clone for EventData2Type
Source§fn clone(&self) -> EventData2Type
fn clone(&self) -> EventData2Type
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 EventData2Type
impl Debug for EventData2Type
Source§impl Display for EventData2Type
impl Display for EventData2Type
Source§impl PartialEq for EventData2Type
impl PartialEq for EventData2Type
impl Copy for EventData2Type
impl StructuralPartialEq for EventData2Type
Auto Trait Implementations§
impl Freeze for EventData2Type
impl RefUnwindSafe for EventData2Type
impl Send for EventData2Type
impl Sync for EventData2Type
impl Unpin for EventData2Type
impl UnwindSafe for EventData2Type
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