pub struct FileTransferInitializeReplyPayload {
pub window_size: u16,
pub file_size: u32,
pub file_crc: u32,
}
Fields§
§window_size: u16
The amount of receive data (in bytes) that can be sent in every packet.
file_size: u32
In read operation, the device returns the target file size (in bytes).
In write operation, the device returns the value 3145728.
file_crc: u32
In read operation, the device returns the CRC value of the target file.
In write operation, the device returns the same CRC value as the previous packets.
Trait Implementations§
Source§impl Clone for FileTransferInitializeReplyPayload
impl Clone for FileTransferInitializeReplyPayload
Source§fn clone(&self) -> FileTransferInitializeReplyPayload
fn clone(&self) -> FileTransferInitializeReplyPayload
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl PartialEq for FileTransferInitializeReplyPayload
impl PartialEq for FileTransferInitializeReplyPayload
Source§fn eq(&self, other: &FileTransferInitializeReplyPayload) -> bool
fn eq(&self, other: &FileTransferInitializeReplyPayload) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl Copy for FileTransferInitializeReplyPayload
impl Eq for FileTransferInitializeReplyPayload
impl StructuralPartialEq for FileTransferInitializeReplyPayload
Auto Trait Implementations§
impl Freeze for FileTransferInitializeReplyPayload
impl RefUnwindSafe for FileTransferInitializeReplyPayload
impl Send for FileTransferInitializeReplyPayload
impl Sync for FileTransferInitializeReplyPayload
impl Unpin for FileTransferInitializeReplyPayload
impl UnwindSafe for FileTransferInitializeReplyPayload
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more