pub struct MspSettingInfo {
pub group_id: u16,
pub setting_type: SettingType,
pub setting_section: u8,
pub setting_mode: SettingMode,
pub min: u32,
pub max: u32,
pub absolute_index: u16,
pub profile_id: u8,
pub profile_count: u8,
}Fields§
§group_id: u16§setting_type: SettingType§setting_section: u8§setting_mode: SettingMode§min: u32§max: u32§absolute_index: u16§profile_id: u8§profile_count: u8Implementations§
Source§impl MspSettingInfo
impl MspSettingInfo
Sourcepub fn packed_struct_display_formatter<'a>(
&'a self,
) -> PackedStructDisplay<'a, Self, [u8; 17]>
pub fn packed_struct_display_formatter<'a>( &'a self, ) -> PackedStructDisplay<'a, Self, [u8; 17]>
Display formatter for console applications
Trait Implementations§
Source§impl Clone for MspSettingInfo
impl Clone for MspSettingInfo
Source§fn clone(&self) -> MspSettingInfo
fn clone(&self) -> MspSettingInfo
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 MspSettingInfo
impl Debug for MspSettingInfo
Source§impl Display for MspSettingInfo
impl Display for MspSettingInfo
Source§impl PackedStruct<[u8; 17]> for MspSettingInfo
Structure that can be packed an unpacked into 17 bytes.
impl PackedStruct<[u8; 17]> for MspSettingInfo
Structure that can be packed an unpacked into 17 bytes.
| Bit, MSB0 | Name | Type |
| 0:15 | group_id | u16 |
| 16:23 | setting_type | SettingType |
| 24:31 | setting_section | u8 |
| 32:39 | setting_mode | SettingMode |
| 40:71 | min | u32 |
| 72:103 | max | u32 |
| 104:119 | absolute_index | u16 |
| 120:127 | profile_id | u8 |
| 128:135 | profile_count | u8 |
Source§impl PackedStructDebug for MspSettingInfo
impl PackedStructDebug for MspSettingInfo
Source§impl PackedStructInfo for MspSettingInfo
impl PackedStructInfo for MspSettingInfo
Source§fn packed_bits() -> usize
fn packed_bits() -> usize
Number of bits that this structure occupies when being packed.
Source§impl PackedStructSlice for MspSettingInfo
impl PackedStructSlice for MspSettingInfo
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 MspSettingInfo
Auto Trait Implementations§
impl Freeze for MspSettingInfo
impl RefUnwindSafe for MspSettingInfo
impl Send for MspSettingInfo
impl Sync for MspSettingInfo
impl Unpin for MspSettingInfo
impl UnsafeUnpin for MspSettingInfo
impl UnwindSafe for MspSettingInfo
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