pub enum DataFormat<T> {
Parsed(T),
Raw(Vec<u8>),
}
Expand description
If program was able to parse received data, the response struct will be stored in Parsed. If parsing was not successful, the Raw will contain all received data, without first byte (SID) which is encoded in UdsResponse Enum
Variants§
Trait Implementations§
Source§impl<T: Debug> Debug for DataFormat<T>
impl<T: Debug> Debug for DataFormat<T>
Source§impl<T: PartialEq> PartialEq for DataFormat<T>
impl<T: PartialEq> PartialEq for DataFormat<T>
impl<T> StructuralPartialEq for DataFormat<T>
Auto Trait Implementations§
impl<T> Freeze for DataFormat<T>where
T: Freeze,
impl<T> RefUnwindSafe for DataFormat<T>where
T: RefUnwindSafe,
impl<T> Send for DataFormat<T>where
T: Send,
impl<T> Sync for DataFormat<T>where
T: Sync,
impl<T> Unpin for DataFormat<T>where
T: Unpin,
impl<T> UnwindSafe for DataFormat<T>where
T: UnwindSafe,
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