pub struct FileUpload<'a, 'b> {
pub off: u64,
pub data: &'a [u8],
pub name: &'b str,
pub len: Option<u64>,
}Expand description
File Upload command
Fields§
§off: u64offset to start/continue upload at
data: &'a [u8]chunk of data to write to the file
name: &'b strabsolute path to a file
len: Option<u64>length of file, this field is only mandatory when “off” is 0
Trait Implementations§
Source§impl<'a, 'b> Debug for FileUpload<'a, 'b>
impl<'a, 'b> Debug for FileUpload<'a, 'b>
Source§impl McuMgrCommand for FileUpload<'_, '_>
impl McuMgrCommand for FileUpload<'_, '_>
Source§type Payload = FileUpload<'_, '_>
type Payload = FileUpload<'_, '_>
the data payload type
Source§type Response = FileUploadResponse
type Response = FileUploadResponse
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, 'b> PartialEq for FileUpload<'a, 'b>
impl<'a, 'b> PartialEq for FileUpload<'a, 'b>
Source§impl<'a, 'b> Serialize for FileUpload<'a, 'b>
impl<'a, 'b> Serialize for FileUpload<'a, 'b>
impl<'a, 'b> Eq for FileUpload<'a, 'b>
impl<'a, 'b> StructuralPartialEq for FileUpload<'a, 'b>
Auto Trait Implementations§
impl<'a, 'b> Freeze for FileUpload<'a, 'b>
impl<'a, 'b> RefUnwindSafe for FileUpload<'a, 'b>
impl<'a, 'b> Send for FileUpload<'a, 'b>
impl<'a, 'b> Sync for FileUpload<'a, 'b>
impl<'a, 'b> Unpin for FileUpload<'a, 'b>
impl<'a, 'b> UnwindSafe for FileUpload<'a, 'b>
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