Trait sbp::SbpMessage

source ·
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;

    fn friendly_name(&self) -> &'static str { ... }
}
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.

Provided Methods§

Get friendly name associated with the message.

Implementors§