pub struct Record {
pub header: RecordHeader,
pub contents: RecordContents,
}Fields§
§header: RecordHeader§contents: RecordContentsImplementations§
Source§impl Record
impl Record
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 parse(data: &[u8]) -> Result<Self, ParseError>
pub fn id(&self) -> Option<&SensorId>
pub fn sensor_number(&self) -> Option<SensorNumber>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Record
impl RefUnwindSafe for Record
impl Send for Record
impl Sync for Record
impl Unpin for Record
impl UnwindSafe for Record
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