pub struct MsgStatusReport {
    pub sender_id: Option<u16>,
    pub reporting_system: u16,
    pub sbp_version: u16,
    pub sequence: u32,
    pub uptime: u32,
    pub status: Vec<SubSystemReport>,
}
Expand description

Status report message

The status report is sent periodically to inform the host or other attached devices that the system is running. It is used to monitor system malfunctions. It contains status reports that indicate to the host the status of each subsystem and whether it is operating correctly.

Interpretation of the subsystem specific status code is product dependent, but if the generic status code is initializing, it should be ignored. Refer to product documentation for details.

Fields

sender_id: Option<u16>

The message sender_id

reporting_system: u16

Identity of reporting system

sbp_version: u16

SBP protocol version

sequence: u32

Increments on each status report sent

uptime: u32

Number of seconds since system start-up

status: Vec<SubSystemReport>

Reported status of individual subsystems

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.