Trait sbp::link::Event

source ·
pub trait Event {
    const MESSAGE_TYPES: &'static [u16];

    // Required method
    fn from_sbp(msg: Sbp) -> Self;
}
Expand description

Something derived from an SBP message.

Required Associated Constants§

source

const MESSAGE_TYPES: &'static [u16]

The message types that correspond to this event. An empty slice means all messages.

Required Methods§

source

fn from_sbp(msg: Sbp) -> Self

Create an instance of this event from an SBP message. This message will only be called if the message type is in Event::MESSAGE_TYPES.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl Event for Sbp

source§

const MESSAGE_TYPES: &'static [u16] = _

source§

impl<T> Event for T
where T: ConcreteMessage,

source§

const MESSAGE_TYPES: &'static [u16] = _