pub struct Processing<TAIL: MessageSemantics, TYPE, const TYPENO: u16> {
tail: TAIL,
_type: PhantomData<TYPE>,
}
Available on
riot_module_core_msg
and crate feature with_msg_v2
only.Fields§
§tail: TAIL
§_type: PhantomData<TYPE>
Trait Implementations§
Source§impl<TAIL: MessageSemantics, TYPE, const TYPENO: u16> MessageSemantics for Processing<TAIL, TYPE, TYPENO>
impl<TAIL: MessageSemantics, TYPE, const TYPENO: u16> MessageSemantics for Processing<TAIL, TYPE, TYPENO>
fn typeno_is_known(&self, typeno: u16) -> bool
Source§unsafe fn drop(message: &mut ReceivedMessage<'_, Self>)
unsafe fn drop(message: &mut ReceivedMessage<'_, Self>)
Interpret a message according to these semantics, then drop it. Read more
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<TAIL, TYPE, const TYPENO: u16> Freeze for Processing<TAIL, TYPE, TYPENO>where
TAIL: Freeze,
impl<TAIL, TYPE, const TYPENO: u16> RefUnwindSafe for Processing<TAIL, TYPE, TYPENO>where
TAIL: RefUnwindSafe,
TYPE: RefUnwindSafe,
impl<TAIL, TYPE, const TYPENO: u16> Send for Processing<TAIL, TYPE, TYPENO>
impl<TAIL, TYPE, const TYPENO: u16> Sync for Processing<TAIL, TYPE, TYPENO>
impl<TAIL, TYPE, const TYPENO: u16> Unpin for Processing<TAIL, TYPE, TYPENO>
impl<TAIL, TYPE, const TYPENO: u16> UnwindSafe for Processing<TAIL, TYPE, TYPENO>where
TAIL: UnwindSafe,
TYPE: UnwindSafe,
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,
Layout§
Note: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.