pub trait SbpMessage: WireFormat + Clone + Sized {
    fn message_name(&self) -> &'static str;
    fn message_type(&self) -> u16;
    fn sender_id(&self) -> Option<u16>;
    fn set_sender_id(&mut self, new_id: u16);
    fn encoded_len(&self) -> usize;
}
Expand description

Common functionality available to all SBP messages.

Required Methods

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.

Implementors