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

Fields

data: Vec<u8>
field_def_num: u8

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.