Trait ecu_diagnostics::BaseServerPayload [−][src]
pub trait BaseServerPayload {
fn get_payload(&self) -> &[u8]ⓘ;
fn get_sid_byte(&self) -> u8;
fn to_bytes(&self) -> &[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