pub struct MspDataFlashSummaryReply {
pub supported: bool,
pub ready: bool,
pub sectors: u32,
pub total_size_bytes: u32,
pub used_size_bytes: u32,
}Fields§
§supported: bool§ready: bool§sectors: u32§total_size_bytes: u32§used_size_bytes: u32Implementations§
Source§impl MspDataFlashSummaryReply
impl MspDataFlashSummaryReply
Sourcepub fn packed_struct_display_formatter<'a>(
&'a self,
) -> PackedStructDisplay<'a, Self, [u8; 13]>
pub fn packed_struct_display_formatter<'a>( &'a self, ) -> PackedStructDisplay<'a, Self, [u8; 13]>
Display formatter for console applications
Trait Implementations§
Source§impl Clone for MspDataFlashSummaryReply
impl Clone for MspDataFlashSummaryReply
Source§fn clone(&self) -> MspDataFlashSummaryReply
fn clone(&self) -> MspDataFlashSummaryReply
Returns a duplicate 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 MspDataFlashSummaryReply
impl Debug for MspDataFlashSummaryReply
Source§impl<'de> Deserialize<'de> for MspDataFlashSummaryReply
impl<'de> Deserialize<'de> for MspDataFlashSummaryReply
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for MspDataFlashSummaryReply
impl Display for MspDataFlashSummaryReply
Source§impl PackedStruct<[u8; 13]> for MspDataFlashSummaryReply
Structure that can be packed an unpacked into 13 bytes.
impl PackedStruct<[u8; 13]> for MspDataFlashSummaryReply
Structure that can be packed an unpacked into 13 bytes.
| Bit, MSB0 | Name | Type |
| 6 | supported | bool |
| 7 | ready | bool |
| 8:39 | sectors | u32 |
| 40:71 | total_size_bytes | u32 |
| 72:103 | used_size_bytes | u32 |
Source§impl PackedStructInfo for MspDataFlashSummaryReply
impl PackedStructInfo for MspDataFlashSummaryReply
Source§fn packed_bits() -> usize
fn packed_bits() -> usize
Number of bits that this structure occupies when being packed.
Source§impl PackedStructSlice for MspDataFlashSummaryReply
impl PackedStructSlice for MspDataFlashSummaryReply
Source§fn pack_to_slice(&self, output: &mut [u8]) -> Result<(), PackingError>
fn pack_to_slice(&self, output: &mut [u8]) -> Result<(), PackingError>
Pack the structure into an output buffer.
Source§fn unpack_from_slice(src: &[u8]) -> Result<Self, PackingError>
fn unpack_from_slice(src: &[u8]) -> Result<Self, PackingError>
Unpack the structure from a buffer.
Source§fn packed_bytes() -> usize
fn packed_bytes() -> usize
Number of bytes that this structure demands for packing or unpacking.
Source§fn pack_to_vec(&self) -> Result<Vec<u8>, PackingError>
fn pack_to_vec(&self) -> Result<Vec<u8>, PackingError>
Pack the structure into a new byte vector.
Source§impl Serialize for MspDataFlashSummaryReply
impl Serialize for MspDataFlashSummaryReply
impl Copy for MspDataFlashSummaryReply
Auto Trait Implementations§
impl Freeze for MspDataFlashSummaryReply
impl RefUnwindSafe for MspDataFlashSummaryReply
impl Send for MspDataFlashSummaryReply
impl Sync for MspDataFlashSummaryReply
impl Unpin for MspDataFlashSummaryReply
impl UnsafeUnpin for MspDataFlashSummaryReply
impl UnwindSafe for MspDataFlashSummaryReply
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