pub enum UdsFrame {
ReadDataByIdentifierRequest {
did: u16,
},
ReadDataByIdentifierResponse {
did: u16,
data: Vec<u8>,
},
ObdModeRequest {
mode: u8,
pid: Option<u8>,
},
ReadDtcRequest {
subfunction: u8,
status_mask: Option<u8>,
},
ReadDtcResponse {
subfunction: u8,
status_availability_mask: u8,
dtcs: Vec<DtcFrame>,
},
}Expand description
A decoded diagnostic frame supported by codec/uds.
Variants§
ReadDataByIdentifierRequest
UDS ReadDataByIdentifier request, service 0x22.
ReadDataByIdentifierResponse
UDS positive ReadDataByIdentifier response, service 0x62.
ObdModeRequest
OBD-II mode request with an optional PID.
ReadDtcRequest
UDS ReadDTCInformation request, service 0x19.
ReadDtcResponse
UDS positive ReadDTCInformation response, service 0x59.
Trait Implementations§
impl Eq for UdsFrame
impl StructuralPartialEq for UdsFrame
Auto Trait Implementations§
impl Freeze for UdsFrame
impl RefUnwindSafe for UdsFrame
impl Send for UdsFrame
impl Sync for UdsFrame
impl Unpin for UdsFrame
impl UnsafeUnpin for UdsFrame
impl UnwindSafe for UdsFrame
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