pub struct EsbAppReceiver<const IN: usize> { /* private fields */ }Implementations§
Source§impl<const IN: usize> EsbAppReceiver<IN>
impl<const IN: usize> EsbAppReceiver<IN>
Sourcepub fn msg_ready(&mut self) -> bool
pub fn msg_ready(&mut self) -> bool
Is there a received message that is ready to be read?
Returns true if a call to read_packet would return Some.
Sourcepub fn read_packet(&mut self) -> Option<PayloadR<IN>>
pub fn read_packet(&mut self) -> Option<PayloadR<IN>>
Attempt to read a packet that has been received via the radio.
Returns Some(PayloadR) if a packet is ready to be read,
otherwise None.
pub async fn wait_read_packet(&mut self) -> PayloadR<IN>
Sourcepub fn maximum_payload_size(&self) -> usize
pub fn maximum_payload_size(&self) -> usize
Gets the maximum payload size (in bytes) that the driver was configured to use.
Auto Trait Implementations§
impl<const IN: usize> Freeze for EsbAppReceiver<IN>
impl<const IN: usize> !RefUnwindSafe for EsbAppReceiver<IN>
impl<const IN: usize> Send for EsbAppReceiver<IN>
impl<const IN: usize> Sync for EsbAppReceiver<IN>
impl<const IN: usize> Unpin for EsbAppReceiver<IN>
impl<const IN: usize> !UnwindSafe for EsbAppReceiver<IN>
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