Struct multiwii_serial_protocol::structs::MspApiVersion [] [src]

pub struct MspApiVersion {
    pub protocol_version: u8,
    pub api_version_major: u8,
    pub api_version_minor: u8,
}

Fields

Methods

impl MspApiVersion
[src]

[src]

Display formatter for console applications

Trait Implementations

impl PackedStruct<[u8; 3]> for MspApiVersion
[src]

Structure that can be packed an unpacked into 3 bytes.

Bit, MSB0NameType
0:7protocol_versionu8
8:15api_version_majoru8
16:23api_version_minoru8

[src]

Packs the structure into a byte array.

[src]

Unpacks the structure from a byte array.

impl PackedStructInfo for MspApiVersion
[src]

[src]

Number of bits that this structure occupies when being packed.

impl PackedStructSlice for MspApiVersion
[src]

[src]

Pack the structure into an output buffer.

[src]

Unpack the structure from a buffer.

[src]

Number of bytes that this structure demands for packing or unpacking.

[src]

Pack the structure into a new byte vector.

impl PackedStructDebug for MspApiVersion
[src]

[src]

[src]

impl Display for MspApiVersion
[src]

[src]

Formats the value using the given formatter. Read more

impl Debug for MspApiVersion
[src]

[src]

Formats the value using the given formatter.

impl Copy for MspApiVersion
[src]

impl Clone for MspApiVersion
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more