pub enum RecordContents {
FullSensor(FullSensorRecord),
CompactSensor(CompactSensorRecord),
EventOnlySensor(EventOnlySensorRecord),
FruDeviceLocator(FruDeviceLocator),
McDeviceLocator(McDeviceLocatorRecord),
Unknown {
ty: u8,
data: Vec<u8>,
},
}Variants§
FullSensor(FullSensorRecord)
CompactSensor(CompactSensorRecord)
EventOnlySensor(EventOnlySensorRecord)
FruDeviceLocator(FruDeviceLocator)
McDeviceLocator(McDeviceLocatorRecord)
Unknown
Implementations§
Source§impl RecordContents
impl RecordContents
pub fn common_data(&self) -> Option<&SensorRecordCommon>
pub fn full_sensor(&self) -> Option<&FullSensorRecord>
pub fn compact_sensor(&self) -> Option<&CompactSensorRecord>
pub fn event_only(&self) -> Option<&EventOnlySensorRecord>
pub fn id(&self) -> Option<&SensorId>
pub fn sensor_number(&self) -> Option<SensorNumber>
Trait Implementations§
Source§impl Clone for RecordContents
impl Clone for RecordContents
Source§fn clone(&self) -> RecordContents
fn clone(&self) -> RecordContents
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 moreAuto Trait Implementations§
impl Freeze for RecordContents
impl RefUnwindSafe for RecordContents
impl Send for RecordContents
impl Sync for RecordContents
impl Unpin for RecordContents
impl UnwindSafe for RecordContents
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