pub struct MspFrame {
pub cmd: u16,
pub dir: u8,
pub payload: Vec<u8>,
pub version: u8,
}Expand description
A decoded MSP frame: its command id, direction/marker byte, and payload.
Fields§
§cmd: u16§dir: u8The direction byte: DIR_TO_FC, DIR_FROM_FC, or DIR_ERROR.
payload: Vec<u8>§version: u8The MSP version the frame was encoded in (1 or 2).
Trait Implementations§
impl Eq for MspFrame
impl StructuralPartialEq for MspFrame
Auto Trait Implementations§
impl Freeze for MspFrame
impl RefUnwindSafe for MspFrame
impl Send for MspFrame
impl Sync for MspFrame
impl Unpin for MspFrame
impl UnsafeUnpin for MspFrame
impl UnwindSafe for MspFrame
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.