#[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: u8
Starts 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 ComposeSchema for TransferDataResponse
impl ComposeSchema for TransferDataResponse
Source§impl Debug for TransferDataResponse
impl Debug for TransferDataResponse
Source§impl<'de> Deserialize<'de> for TransferDataResponse
impl<'de> Deserialize<'de> for TransferDataResponse
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>,
Source§impl PartialEq for TransferDataResponse
impl PartialEq for TransferDataResponse
Source§impl Serialize for TransferDataResponse
impl Serialize for TransferDataResponse
Source§impl ToSchema for TransferDataResponse
impl ToSchema for TransferDataResponse
Source§impl WireFormat for TransferDataResponse
impl WireFormat for TransferDataResponse
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>
Some(value)
) if the stream contains a complete value.
Returns Ok(None
) if the stream is empty. Read more