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§
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<(), ()>
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.