Struct riot_wrappers::msg::NumericMsg
source · pub struct NumericMsg(/* private fields */);
Available on
riot_module_core_msg
only.Expand description
An initialized message of a type whose payload is numeric
Implementations§
source§impl NumericMsg
impl NumericMsg
pub fn new(type_: u16, value: u32) -> Self
sourcepub unsafe fn recognize(msg: OpaqueMsg) -> Self
pub unsafe fn recognize(msg: OpaqueMsg) -> Self
Interpret an opaque message as a numeric one. The caller needs to ensure that the message was initialized with a u32 value, typically by checking the message type (or receiving the message as a response) and relying on senders to properly initialize the message.
pub fn get_value(&self) -> u32
Trait Implementations§
source§impl Debug for NumericMsg
impl Debug for NumericMsg
Auto Trait Implementations§
impl RefUnwindSafe for NumericMsg
impl !Send for NumericMsg
impl !Sync for NumericMsg
impl Unpin for NumericMsg
impl UnwindSafe for NumericMsg
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> IntoSwitch for T
impl<T> IntoSwitch for T
source§fn into_switch<ActiveLevel>(self) -> Switch<T, ActiveLevel>
fn into_switch<ActiveLevel>(self) -> Switch<T, ActiveLevel>
source§fn into_active_high_switch(self) -> Switch<Self, ActiveHigh>where
Self: Sized,
fn into_active_high_switch(self) -> Switch<Self, ActiveHigh>where
Self: Sized,
source§impl<T> Msg for Twhere
T: WrapsMsgT,
impl<T> Msg for Twhere
T: WrapsMsgT,
source§fn send(self, target: &KernelPID) -> Result<(), MsgSendError>
fn send(self, target: &KernelPID) -> Result<(), MsgSendError>
Available on
riot_module_core_msg
only.source§fn send_receive(self, target: &KernelPID) -> OpaqueMsg
fn send_receive(self, target: &KernelPID) -> OpaqueMsg
Available on
riot_module_core_msg
only.source§fn reply(self, response: impl WrapsMsgT) -> Result<(), ()>
fn reply(self, response: impl WrapsMsgT) -> Result<(), ()>
Available on
riot_module_core_msg
only.source§fn get_sender(&self) -> MsgSender
fn get_sender(&self) -> MsgSender
Available on
riot_module_core_msg
only.