#[non_exhaustive]pub struct RequestDownloadRequest {
pub memory_address: u64,
pub memory_size: u32,
/* private fields */
}Expand description
A request to the server for it to download data from the client
A positive response to this request (RequestDownloadResponse) will happen
after the server takes all necessary actions to receive the data once the server is ready to receive
This is a variable length Request, determined by the address_and_length_format_identifier value
See ISO-14229-1:2020, Table H.1 for format information
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.memory_address: u64Starting address of the server memory. Size is determined by address_and_length_format_identifier
Has a variable number of bytes, max of 5
memory_size: u32Size of the data to be downloaded. Number of bytes sent is determined by address_and_length_format_identifier
Used by the server to validate the data transferred by the [TransferData] service
Has a variable number of bytes, max of 4
Implementations§
Source§impl RequestDownloadRequest
impl RequestDownloadRequest
Sourcepub fn allowed_nack_codes() -> &'static [NegativeResponseCode]
pub fn allowed_nack_codes() -> &'static [NegativeResponseCode]
Get the allowed NegativeResponseCode variants for this request
Trait Implementations§
Source§impl Clone for RequestDownloadRequest
impl Clone for RequestDownloadRequest
Source§fn clone(&self) -> RequestDownloadRequest
fn clone(&self) -> RequestDownloadRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for RequestDownloadRequest
Source§impl Debug for RequestDownloadRequest
impl Debug for RequestDownloadRequest
Source§impl PartialEq for RequestDownloadRequest
impl PartialEq for RequestDownloadRequest
impl StructuralPartialEq for RequestDownloadRequest
Source§impl WireFormat for RequestDownloadRequest
impl WireFormat for RequestDownloadRequest
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