[][src]Struct mavlink::common::STATUSTEXT_DATA

pub struct STATUSTEXT_DATA {
    pub severity: MavSeverity,
    pub text: Vec<char>,
    pub id: u16,
    pub chunk_seq: u8,
}

id: 253 Status text message. These messages are printed in yellow in the COMM console of QGroundControl. WARNING: They consume quite some bandwidth, so use only for important status and error messages. If implemented wisely, these messages are buffered on the MCU and sent only at a limited rate (e.g. 10 Hz)..

Fields

severity: MavSeverity

Severity of status. Relies on the definitions within RFC-5424..

text: Vec<char>

Status text message, without null termination character.

id: u16

Unique (opaque) identifier for this statustext message. May be used to reassemble a logical long-statustext message from a sequence of chunks. A value of zero indicates this is the only chunk in the sequence and the message can be emitted immediately..

chunk_seq: u8

This chunk's sequence number; indexing is from zero. Any null character in the text field is taken to mean this was the last chunk..

Implementations

impl STATUSTEXT_DATA[src]

pub const ENCODED_LEN: usize[src]

pub fn deser(
    version: MavlinkVersion,
    _input: &[u8]
) -> Result<Self, ParserError>
[src]

pub fn ser(&self) -> Vec<u8>[src]

Trait Implementations

impl Clone for STATUSTEXT_DATA[src]

impl Debug for STATUSTEXT_DATA[src]

impl Default for STATUSTEXT_DATA[src]

impl<'de> Deserialize<'de> for STATUSTEXT_DATA[src]

impl PartialEq<STATUSTEXT_DATA> for STATUSTEXT_DATA[src]

impl Serialize for STATUSTEXT_DATA[src]

impl StructuralPartialEq for STATUSTEXT_DATA[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.