pub struct MsgStatusJournal {
    pub sender_id: Option<u16>,
    pub reporting_system: u16,
    pub sbp_version: u16,
    pub total_status_reports: u32,
    pub sequence_descriptor: u8,
    pub journal: Vec<StatusJournalItem>,
}
Expand description

Status report journal

The status journal message contains past status reports (see MSG_STATUS_REPORT) and functions as a error/event storage for telemetry purposes.

Fields

sender_id: Option<u16>

The message sender_id

reporting_system: u16

Identity of reporting system

sbp_version: u16

SBP protocol version

total_status_reports: u32

Total number of status reports sent since system startup

sequence_descriptor: u8

Index and number of messages in this sequence. First nibble is the size of the sequence (n), second nibble is the zero-indexed counter (ith packet of n)

journal: Vec<StatusJournalItem>

Status journal

Implementations

Gets the System stored in the reporting_system bitfield.

Returns Ok if the bitrange contains a known System variant. Otherwise the value of the bitrange is returned as an Err(u16). This may be because of a malformed message, or because new variants of System were added.

Set the bitrange corresponding to the System of the reporting_system bitfield.

Gets the sbp_major_protocol_version_number stored in sbp_version.

Sets the sbp_major_protocol_version_number bitrange of sbp_version.

Gets the sbp_minor_protocol_version_number stored in sbp_version.

Sets the sbp_minor_protocol_version_number bitrange of sbp_version.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

The message type.

The message name.

Formats the value using the given formatter. Read more

Converts to this type from the input type.

Get the message name.

Get the message type.

Get the sender_id if it is set.

Set the sender id.

Number of bytes this message will take on the wire.

The type returned in the event of a conversion error.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.