pub enum ObdiiData {
Timestamp(Field<DateTime>),
TimestampMs(Field<Uint16>),
TimeOffset(Field<Uint16>),
Pid(Field<Bytes>),
RawData(Field<Bytes>),
PidDataSize(Field<Uint8>),
SystemTime(Field<Uint32>),
StartTimestamp(Field<DateTime>),
StartTimestampMs(Field<Uint16>),
Unknown {
data: Vec<u8>,
field_def_num: u8,
},
}
Variants
Timestamp(Field<DateTime>)
Timestamp message was output
TimestampMs(Field<Uint16>)
Fractional part of timestamp, added to timestamp
TimeOffset(Field<Uint16>)
Offset of PID reading [i] from start_timestamp+start_timestamp_ms. Readings may span accross seconds.
Pid(Field<Bytes>)
Parameter ID
RawData(Field<Bytes>)
Raw parameter data
PidDataSize(Field<Uint8>)
Optional, data size of PID[i]. If not specified refer to SAE J1979.
SystemTime(Field<Uint32>)
System time associated with sample expressed in ms, can be used instead of time_offset. There will be a system_time value for each raw_data element. For multibyte pids the system_time is repeated.
StartTimestamp(Field<DateTime>)
Timestamp of first sample recorded in the message. Used with time_offset to generate time of each sample
StartTimestampMs(Field<Uint16>)
Fractional part of start_timestamp
Unknown
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ObdiiData
impl Send for ObdiiData
impl Sync for ObdiiData
impl Unpin for ObdiiData
impl UnwindSafe for ObdiiData
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more