Struct riot_wrappers::msg::v2::NoConfiguredMessages
source · pub struct NoConfiguredMessages;
Available on
riot_module_core_msg
and crate feature with_msg_v2
only.Trait Implementations§
source§impl MessageSemantics for NoConfiguredMessages
impl MessageSemantics for NoConfiguredMessages
source§unsafe fn drop(_message: &mut ReceivedMessage<'_, Self>)
unsafe fn drop(_message: &mut ReceivedMessage<'_, Self>)
Panicing because if a thread receives unknown messages, it may for the same reason receive mistyped messages, and that’d be a safety violation that’s better shown in the most visible way.
If this is undesired, think twice about whether the source of the message really can’t happen to send messages of a number this threads expects (and handles as something different) as well. If it is still undesired, you can core::mem::forget() the message after having decoded all desired types.
fn typeno_is_known(&self, _typeno: u16) -> bool
source§fn split_off<NewType: Send, const NEW_TYPENO: u16>(
self
) -> (Processing<Self, NewType, NEW_TYPENO>, ReceivePort<NewType, NEW_TYPENO>, SendPort<NewType, NEW_TYPENO>)
fn split_off<NewType: Send, const NEW_TYPENO: u16>( self ) -> (Processing<Self, NewType, NEW_TYPENO>, ReceivePort<NewType, NEW_TYPENO>, SendPort<NewType, NEW_TYPENO>)
source§fn receive(&self) -> ReceivedMessage<'_, Self>
fn receive(&self) -> ReceivedMessage<'_, Self>
Block to receive a single message
source§fn try_receive(&self) -> Option<ReceivedMessage<'_, Self>>
fn try_receive(&self) -> Option<ReceivedMessage<'_, Self>>
Receive a single message if one is available in the queue (or another thread is blocking to
send a message, if no queue is used)
Auto Trait Implementations§
impl RefUnwindSafe for NoConfiguredMessages
impl Send for NoConfiguredMessages
impl Sync for NoConfiguredMessages
impl Unpin for NoConfiguredMessages
impl UnwindSafe for NoConfiguredMessages
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