Trait ecu_diagnostics::BaseServerPayload
source · [−]pub trait BaseServerPayload {
fn get_payload(&self) -> &[u8]ⓘNotable traits for &'_ [u8]impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
;
fn get_sid_byte(&self) -> u8;
fn to_bytes(&self) -> &[u8]ⓘNotable traits for &'_ [u8]impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
;
fn requires_response(&self) -> bool;
}
Expand description
Basic diagnostic server payload
Required Methods
Gets the payload portion of the diagnostic message (Not including the SID)
fn get_sid_byte(&self) -> u8
fn get_sid_byte(&self) -> u8
Gets the SID (Service ID) byte from the payload
Gets the entire message as a byte array. This is what is sent to the ECU
fn requires_response(&self) -> bool
fn requires_response(&self) -> bool
Boolean indicating if the diagnostic server should poll the ECU for a response after sending the payload