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