pub struct PartitionMd5 {
pub data: Md5Data,
}
Expand description
ESP Partition MD5
Binary representation:
Off | Len | Desc |
---|---|---|
0 | 2 | Magic |
2 | 14 | Reserved |
16 | 16 | MD5 data |
Fields§
§data: Md5Data
MD5 checksum data
Implementations§
Source§impl PartitionMd5
impl PartitionMd5
Sourcepub const RESERVED_SIZE: usize = 14usize
pub const RESERVED_SIZE: usize = 14usize
The size of reserved space between magic bytes and MD5 data
Sourcepub const RESERVED_DATA: u8 = 255u8
pub const RESERVED_DATA: u8 = 255u8
The content of reserved space between magic bytes and MD5 data
Sourcepub fn from_bytes(data: &PartitionBuffer) -> Result<Self, PartitionError>
pub fn from_bytes(data: &PartitionBuffer) -> Result<Self, PartitionError>
Convert md5 data from binary representation
Sourcepub fn to_bytes(&self, data: &mut PartitionBuffer) -> Result<(), PartitionError>
pub fn to_bytes(&self, data: &mut PartitionBuffer) -> Result<(), PartitionError>
Convert md5 data to binary representation
Trait Implementations§
Source§impl Clone for PartitionMd5
impl Clone for PartitionMd5
Source§fn clone(&self) -> PartitionMd5
fn clone(&self) -> PartitionMd5
Returns a copy 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 Debug for PartitionMd5
impl Debug for PartitionMd5
Source§impl Default for PartitionMd5
impl Default for PartitionMd5
Source§fn default() -> PartitionMd5
fn default() -> PartitionMd5
Returns the “default value” for a type. Read more
Source§impl From<Digest> for PartitionMd5
impl From<Digest> for PartitionMd5
Source§impl From<PartitionMd5> for Md5Data
impl From<PartitionMd5> for Md5Data
Source§fn from(md5: PartitionMd5) -> Self
fn from(md5: PartitionMd5) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PartitionMd5
impl PartialEq for PartitionMd5
Source§impl TryFrom<&[u8]> for PartitionMd5
impl TryFrom<&[u8]> for PartitionMd5
Source§impl TryFrom<&[u8; 32]> for PartitionMd5
impl TryFrom<&[u8; 32]> for PartitionMd5
Source§type Error = PartitionError
type Error = PartitionError
The type returned in the event of a conversion error.
impl Eq for PartitionMd5
impl StructuralPartialEq for PartitionMd5
Auto Trait Implementations§
impl Freeze for PartitionMd5
impl RefUnwindSafe for PartitionMd5
impl Send for PartitionMd5
impl Sync for PartitionMd5
impl Unpin for PartitionMd5
impl UnwindSafe for PartitionMd5
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