#[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: RoutineControlSubFunction
The sub-function echoes the routine control request
routine_status_record: RoutineInfoStatusRecord
Should 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> ComposeSchema for RoutineControlResponse<RoutineInfoStatusRecord>where
RoutineInfoStatusRecord: ToSchema,
impl<RoutineInfoStatusRecord> ComposeSchema for RoutineControlResponse<RoutineInfoStatusRecord>where
RoutineInfoStatusRecord: ToSchema,
Source§impl<RoutineInfoStatusRecord: Debug> Debug for RoutineControlResponse<RoutineInfoStatusRecord>
impl<RoutineInfoStatusRecord: Debug> Debug for RoutineControlResponse<RoutineInfoStatusRecord>
Source§impl<'de, RoutineInfoStatusRecord> Deserialize<'de> for RoutineControlResponse<RoutineInfoStatusRecord>where
RoutineInfoStatusRecord: Deserialize<'de>,
impl<'de, RoutineInfoStatusRecord> Deserialize<'de> for RoutineControlResponse<RoutineInfoStatusRecord>where
RoutineInfoStatusRecord: Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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<RoutineInfoStatusRecord> Serialize for RoutineControlResponse<RoutineInfoStatusRecord>where
RoutineInfoStatusRecord: Serialize,
impl<RoutineInfoStatusRecord> Serialize for RoutineControlResponse<RoutineInfoStatusRecord>where
RoutineInfoStatusRecord: Serialize,
Source§impl<RoutineStatusRecord: WireFormat> SingleValueWireFormat for RoutineControlResponse<RoutineStatusRecord>
impl<RoutineStatusRecord: WireFormat> SingleValueWireFormat for RoutineControlResponse<RoutineStatusRecord>
Source§impl<RoutineInfoStatusRecord> ToSchema for RoutineControlResponse<RoutineInfoStatusRecord>where
RoutineInfoStatusRecord: ToSchema,
impl<RoutineInfoStatusRecord> ToSchema for RoutineControlResponse<RoutineInfoStatusRecord>where
RoutineInfoStatusRecord: ToSchema,
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 option_from_reader<T: Read>(reader: &mut T) -> Result<Option<Self>, Error>
fn option_from_reader<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 to_writer<T: Write>(&self, writer: &mut T) -> Result<usize, Error>
fn to_writer<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