pub struct FileChecksum<'a, 'b> {
pub name: &'a str,
pub type: Option<&'b str>,
pub off: u64,
pub len: Option<u64>,
}Expand description
File Hash/Checksum command
Fields§
§name: &'a strabsolute path to a file
type: Option<&'b str>type of hash/checksum to perform or None to use default
off: u64offset to start hash/checksum calculation at
len: Option<u64>maximum length of data to read from file to generate hash/checksum with (optional, full file size if None)
Trait Implementations§
Source§impl<'a, 'b> Debug for FileChecksum<'a, 'b>
impl<'a, 'b> Debug for FileChecksum<'a, 'b>
Source§impl McuMgrCommand for FileChecksum<'_, '_>
impl McuMgrCommand for FileChecksum<'_, '_>
Source§type Payload = FileChecksum<'_, '_>
type Payload = FileChecksum<'_, '_>
the data payload type
Source§type Response = FileChecksumResponse
type Response = FileChecksumResponse
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 FileChecksum<'a, 'b>
impl<'a, 'b> PartialEq for FileChecksum<'a, 'b>
Source§impl<'a, 'b> Serialize for FileChecksum<'a, 'b>
impl<'a, 'b> Serialize for FileChecksum<'a, 'b>
impl<'a, 'b> Eq for FileChecksum<'a, 'b>
impl<'a, 'b> StructuralPartialEq for FileChecksum<'a, 'b>
Auto Trait Implementations§
impl<'a, 'b> Freeze for FileChecksum<'a, 'b>
impl<'a, 'b> RefUnwindSafe for FileChecksum<'a, 'b>
impl<'a, 'b> Send for FileChecksum<'a, 'b>
impl<'a, 'b> Sync for FileChecksum<'a, 'b>
impl<'a, 'b> Unpin for FileChecksum<'a, 'b>
impl<'a, 'b> UnwindSafe for FileChecksum<'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