pub struct FileDownload<'a> {
pub off: u64,
pub name: &'a str,
}Expand description
File Download command
Fields§
§off: u64offset to start download at
name: &'a strabsolute path to a file
Trait Implementations§
Source§impl<'a> Debug for FileDownload<'a>
impl<'a> Debug for FileDownload<'a>
Source§impl McuMgrCommand for FileDownload<'_>
impl McuMgrCommand for FileDownload<'_>
Source§type Payload = FileDownload<'_>
type Payload = FileDownload<'_>
the data payload type
Source§type Response = FileDownloadResponse
type Response = FileDownloadResponse
the response type of the command
Source§fn is_write_operation(&self) -> bool
fn is_write_operation(&self) -> bool
whether this command is a read or write operation
Source§fn command_id(&self) -> u8
fn command_id(&self) -> u8
the command ID
Source§impl<'a> PartialEq for FileDownload<'a>
impl<'a> PartialEq for FileDownload<'a>
Source§impl<'a> Serialize for FileDownload<'a>
impl<'a> Serialize for FileDownload<'a>
impl<'a> Eq for FileDownload<'a>
impl<'a> StructuralPartialEq for FileDownload<'a>
Auto Trait Implementations§
impl<'a> Freeze for FileDownload<'a>
impl<'a> RefUnwindSafe for FileDownload<'a>
impl<'a> Send for FileDownload<'a>
impl<'a> Sync for FileDownload<'a>
impl<'a> Unpin for FileDownload<'a>
impl<'a> UnwindSafe for FileDownload<'a>
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