pub struct FileTransfer {
pub file_type: u8,
pub total_size: u32,
pub offset: u32,
pub fragment: Vec<u8>,
}Available on crate feature
alloc only.Expand description
osdp_FILETRANSFER body.
Fields§
§file_type: u8Vendor-specific file type.
total_size: u32Total file size, in bytes.
offset: u32Byte offset of this fragment.
fragment: Vec<u8>File fragment.
Implementations§
Trait Implementations§
Source§impl Clone for FileTransfer
impl Clone for FileTransfer
Source§fn clone(&self) -> FileTransfer
fn clone(&self) -> FileTransfer
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FileTransfer
impl Debug for FileTransfer
Source§impl PartialEq for FileTransfer
impl PartialEq for FileTransfer
Source§fn eq(&self, other: &FileTransfer) -> bool
fn eq(&self, other: &FileTransfer) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for FileTransfer
impl StructuralPartialEq for FileTransfer
Auto Trait Implementations§
impl Freeze for FileTransfer
impl RefUnwindSafe for FileTransfer
impl Send for FileTransfer
impl Sync for FileTransfer
impl Unpin for FileTransfer
impl UnsafeUnpin for FileTransfer
impl UnwindSafe for FileTransfer
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