riot_wrappers::msg

Trait Msg

Source
pub trait Msg {
    // Required methods
    fn get_sender(&self) -> MsgSender;
    fn get_type(&self) -> u16;
    fn send(self, target: &KernelPID) -> Result<(), MsgSendError>;
    fn send_receive(self, target: &KernelPID) -> OpaqueMsg;
    fn reply(self, response: impl WrapsMsgT) -> Result<(), ()>;
}
Available on riot_module_core_msg only.

Required Methods§

Source

fn get_sender(&self) -> MsgSender

Source

fn get_type(&self) -> u16

Source

fn send(self, target: &KernelPID) -> Result<(), MsgSendError>

Source

fn send_receive(self, target: &KernelPID) -> OpaqueMsg

Source

fn reply(self, response: impl WrapsMsgT) -> Result<(), ()>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T> Msg for T
where T: WrapsMsgT,