pub struct MspFlightControllerVariant {
pub identifier: [u8; 4],
}
Fields§
§identifier: [u8; 4]
Implementations§
Source§impl MspFlightControllerVariant
impl MspFlightControllerVariant
Sourcepub fn packed_struct_display_formatter<'a>(
&'a self,
) -> PackedStructDisplay<'a, Self, [u8; 4]>
pub fn packed_struct_display_formatter<'a>( &'a self, ) -> PackedStructDisplay<'a, Self, [u8; 4]>
Display formatter for console applications
Trait Implementations§
Source§impl Clone for MspFlightControllerVariant
impl Clone for MspFlightControllerVariant
Source§fn clone(&self) -> MspFlightControllerVariant
fn clone(&self) -> MspFlightControllerVariant
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 MspFlightControllerVariant
impl Debug for MspFlightControllerVariant
Source§impl<'de> Deserialize<'de> for MspFlightControllerVariant
impl<'de> Deserialize<'de> for MspFlightControllerVariant
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 MspFlightControllerVariant
impl Display for MspFlightControllerVariant
Source§impl PackedStruct<[u8; 4]> for MspFlightControllerVariant
Structure that can be packed an unpacked into 4 bytes.
impl PackedStruct<[u8; 4]> for MspFlightControllerVariant
Structure that can be packed an unpacked into 4 bytes.
Bit, MSB0 | Name | Type |
0:7 | identifier[0] | u8 |
8:15 | identifier[1] | u8 |
16:23 | identifier[2] | u8 |
24:31 | identifier[3] | u8 |
Source§impl PackedStructInfo for MspFlightControllerVariant
impl PackedStructInfo for MspFlightControllerVariant
Source§fn packed_bits() -> usize
fn packed_bits() -> usize
Number of bits that this structure occupies when being packed.
Source§impl PackedStructSlice for MspFlightControllerVariant
impl PackedStructSlice for MspFlightControllerVariant
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.
impl Copy for MspFlightControllerVariant
Auto Trait Implementations§
impl Freeze for MspFlightControllerVariant
impl RefUnwindSafe for MspFlightControllerVariant
impl Send for MspFlightControllerVariant
impl Sync for MspFlightControllerVariant
impl Unpin for MspFlightControllerVariant
impl UnwindSafe for MspFlightControllerVariant
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