pub struct Reading {
pub value: Value,
pub unit: &'static str,
pub timestamp: Instant,
pub raw_bytes: Vec<u8>,
pub source: ReadingSource,
}Expand description
A single reading from the vehicle.
Fields§
§value: Value§unit: &'static str§timestamp: Instant§raw_bytes: Vec<u8>§source: ReadingSourceTrait Implementations§
Auto Trait Implementations§
impl Freeze for Reading
impl RefUnwindSafe for Reading
impl Send for Reading
impl Sync for Reading
impl Unpin for Reading
impl UnsafeUnpin for Reading
impl UnwindSafe for Reading
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