Trait riot_wrappers::msg::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<(), ()>

Object Safety§

This trait is not object safe.

Implementors§

source§

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