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