Struct multiwii_serial_protocol::MspPacket [] [src]

pub struct MspPacket<'a> {
    pub cmd: u8,
    pub direction: MspPacketDirection,
    pub data: Cow<'a, [u8]>,
}

A decoded MSP packet, with a command code, direction and payload

Fields

Methods

impl<'a> MspPacket<'a>
[src]

[src]

Number of bytes that this packet requires to be packed

[src]

Serialize to network bytes

Trait Implementations

impl<'a> Debug for MspPacket<'a>
[src]

[src]

Formats the value using the given formatter.

impl<'a> Clone for MspPacket<'a>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<'a> PartialEq for MspPacket<'a>
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.