#[non_exhaustive]pub struct TransferDataResponse {
pub block_sequence_counter: u8,
pub data: Vec<u8>,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.block_sequence_counter: u8Starts at 0x01 from the server when a RequestDownload or RequestUpload or RequestFileTransfer is received
Increments by 0x01 for each TransferDataRequest message
At 0xFF the counter wraps around to 0x00
This is an ECHO of the block_sequence_counter from the TransferDataRequest message
Check against the request to ensure the correct block is being acknowledged
If the block_sequence_counter is not as expected or does not arrive, the client should retransmit the block
data: Vec<u8>Contains data required by the client to support the transfer of data. Vehicle manufacturer specific
For download (client to server), this might be a checksum for the client to verify correct transfer This should not repeat the data sent from the client For upload (server to client), this will include the data from the server
Trait Implementations§
Source§impl Clone for TransferDataResponse
impl Clone for TransferDataResponse
Source§fn clone(&self) -> TransferDataResponse
fn clone(&self) -> TransferDataResponse
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TransferDataResponse
impl Debug for TransferDataResponse
Source§impl PartialEq for TransferDataResponse
impl PartialEq for TransferDataResponse
Source§impl WireFormat for TransferDataResponse
impl WireFormat for TransferDataResponse
Source§fn decode<T: Read>(reader: &mut T) -> Result<Option<Self>, Error>
fn decode<T: Read>(reader: &mut T) -> Result<Option<Self>, Error>
Some(value)) if the stream contains a complete value.
Returns Ok(None) if the stream is empty. Read more