pub struct EntryHeader {
pub sensor_id: u16,
pub timestamp: u64,
pub payload_len: u16,
pub kind: EntryKind,
}Expand description
Public API entry header (native endianness).
Fields§
§sensor_id: u16Which sensor produced the entry.
timestamp: u64The timestamp the entry was appended with.
For a Run this is the first sample’s; the rest are
derived from the interval stored in the payload.
payload_len: u16Payload length in bytes, excluding the entry header and CRC.
kind: EntryKindWhether the payload is one sample or a run of them.
Always Single on a read path, which expands runs.
Implementations§
Trait Implementations§
Source§impl Clone for EntryHeader
impl Clone for EntryHeader
impl Copy for EntryHeader
Source§impl Debug for EntryHeader
impl Debug for EntryHeader
impl Eq for EntryHeader
Source§impl PartialEq for EntryHeader
impl PartialEq for EntryHeader
impl StructuralPartialEq for EntryHeader
Auto Trait Implementations§
impl Freeze for EntryHeader
impl RefUnwindSafe for EntryHeader
impl Send for EntryHeader
impl Sync for EntryHeader
impl Unpin for EntryHeader
impl UnsafeUnpin for EntryHeader
impl UnwindSafe for EntryHeader
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