#[non_exhaustive]pub struct RoutineControlResponse<RoutineInfoStatusRecord> {
pub routine_control_type: RoutineControlSubFunction,
pub routine_status_record: RoutineInfoStatusRecord,
}Expand description
RoutineControlResponse is a variable length field that can contain the status of the routine
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.routine_control_type: RoutineControlSubFunctionThe sub-function echoes the routine control request
routine_status_record: RoutineInfoStatusRecordShould contain the routine_info (u8) and the routine_status_record (u8 * n) information. n can be 0
routine_info: The routine information that the response is for (vehicle manufacturer specific)
routine_status_record: The status of the routine (optional)
Mandatory for any routine where the routine_status_record is defined by ISO/SAE specs, even if it is 0 bytes.
Optional if the routine is defined by a manufacturer.
Implementations§
Source§impl<RoutineStatusRecord: WireFormat> RoutineControlResponse<RoutineStatusRecord>
impl<RoutineStatusRecord: WireFormat> RoutineControlResponse<RoutineStatusRecord>
Trait Implementations§
Source§impl<RoutineInfoStatusRecord: Clone> Clone for RoutineControlResponse<RoutineInfoStatusRecord>
impl<RoutineInfoStatusRecord: Clone> Clone for RoutineControlResponse<RoutineInfoStatusRecord>
Source§fn clone(&self) -> RoutineControlResponse<RoutineInfoStatusRecord>
fn clone(&self) -> RoutineControlResponse<RoutineInfoStatusRecord>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<RoutineInfoStatusRecord: Debug> Debug for RoutineControlResponse<RoutineInfoStatusRecord>
impl<RoutineInfoStatusRecord: Debug> Debug for RoutineControlResponse<RoutineInfoStatusRecord>
Source§impl<RoutineInfoStatusRecord: PartialEq> PartialEq for RoutineControlResponse<RoutineInfoStatusRecord>
impl<RoutineInfoStatusRecord: PartialEq> PartialEq for RoutineControlResponse<RoutineInfoStatusRecord>
Source§fn eq(&self, other: &RoutineControlResponse<RoutineInfoStatusRecord>) -> bool
fn eq(&self, other: &RoutineControlResponse<RoutineInfoStatusRecord>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<RoutineStatusRecord: WireFormat> SingleValueWireFormat for RoutineControlResponse<RoutineStatusRecord>
impl<RoutineStatusRecord: WireFormat> SingleValueWireFormat for RoutineControlResponse<RoutineStatusRecord>
Source§impl<RoutineStatusRecord: WireFormat> WireFormat for RoutineControlResponse<RoutineStatusRecord>
impl<RoutineStatusRecord: WireFormat> WireFormat for RoutineControlResponse<RoutineStatusRecord>
Source§fn required_size(&self) -> usize
fn required_size(&self) -> usize
Can be 3 bytes, or more
Source§fn decode<T: Read>(reader: &mut T) -> Result<Option<Self>, Error>
fn decode<T: Read>(reader: &mut T) -> Result<Option<Self>, Error>
Deserialize a value from a byte stream.
Returns Ok(
Some(value)) if the stream contains a complete value.
Returns Ok(None) if the stream is empty. Read moreSource§fn encode<T: Write>(&self, writer: &mut T) -> Result<usize, Error>
fn encode<T: Write>(&self, writer: &mut T) -> Result<usize, Error>
Serialize a value to a byte stream.
Returns the number of bytes written. Read more
Source§fn is_positive_response_suppressed(&self) -> bool
fn is_positive_response_suppressed(&self) -> bool
For some UDS messages, positive replies can be suppressed via the SPRMIB (bit 7 position) of the request. Read more
impl<RoutineInfoStatusRecord> StructuralPartialEq for RoutineControlResponse<RoutineInfoStatusRecord>
Auto Trait Implementations§
impl<RoutineInfoStatusRecord> Freeze for RoutineControlResponse<RoutineInfoStatusRecord>where
RoutineInfoStatusRecord: Freeze,
impl<RoutineInfoStatusRecord> RefUnwindSafe for RoutineControlResponse<RoutineInfoStatusRecord>where
RoutineInfoStatusRecord: RefUnwindSafe,
impl<RoutineInfoStatusRecord> Send for RoutineControlResponse<RoutineInfoStatusRecord>where
RoutineInfoStatusRecord: Send,
impl<RoutineInfoStatusRecord> Sync for RoutineControlResponse<RoutineInfoStatusRecord>where
RoutineInfoStatusRecord: Sync,
impl<RoutineInfoStatusRecord> Unpin for RoutineControlResponse<RoutineInfoStatusRecord>where
RoutineInfoStatusRecord: Unpin,
impl<RoutineInfoStatusRecord> UnwindSafe for RoutineControlResponse<RoutineInfoStatusRecord>where
RoutineInfoStatusRecord: 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