pub struct RxRunner<'d, const MTU: usize> { /* private fields */ }
Expand description
RX runner.
Holds the lower end of the channel for passing inbound packets up the stack.
Implementations§
Source§impl<'d, const MTU: usize> RxRunner<'d, MTU>
impl<'d, const MTU: usize> RxRunner<'d, MTU>
Sourcepub async fn rx_buf(&mut self) -> &mut [u8]
pub async fn rx_buf(&mut self) -> &mut [u8]
Wait until there is space for more inbound packets and return a slice they can be copied into.
Sourcepub fn try_rx_buf(&mut self) -> Option<&mut [u8]>
pub fn try_rx_buf(&mut self) -> Option<&mut [u8]>
Check if there is space for more inbound packets right now.
Sourcepub fn poll_rx_buf(&mut self, cx: &mut Context<'_>) -> Poll<&mut [u8]>
pub fn poll_rx_buf(&mut self, cx: &mut Context<'_>) -> Poll<&mut [u8]>
Polling the inbound channel if there is space for packets.
Auto Trait Implementations§
impl<'d, const MTU: usize> Freeze for RxRunner<'d, MTU>
impl<'d, const MTU: usize> !RefUnwindSafe for RxRunner<'d, MTU>
impl<'d, const MTU: usize> !Send for RxRunner<'d, MTU>
impl<'d, const MTU: usize> !Sync for RxRunner<'d, MTU>
impl<'d, const MTU: usize> Unpin for RxRunner<'d, MTU>
impl<'d, const MTU: usize> !UnwindSafe for RxRunner<'d, MTU>
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