pub struct Runner<'d, const MTU: usize> { /* private fields */ }
Implementations§
Source§impl<'d, const MTU: usize> Runner<'d, MTU>
impl<'d, const MTU: usize> Runner<'d, MTU>
pub fn split(self) -> (StateRunner<'d>, RxRunner<'d, MTU>, TxRunner<'d, MTU>)
pub fn state_runner(&self) -> StateRunner<'d>
pub fn set_link_state(&mut self, state: LinkState)
pub fn set_ethernet_address(&mut self, address: [u8; 6])
pub async fn rx_buf(&mut self) -> &mut [u8]
pub fn try_rx_buf(&mut self) -> Option<&mut [u8]>
pub fn poll_rx_buf(&mut self, cx: &mut Context<'_>) -> Poll<&mut [u8]>
pub fn rx_done(&mut self, len: usize)
pub async fn tx_buf(&mut self) -> &mut [u8]
pub fn try_tx_buf(&mut self) -> Option<&mut [u8]>
pub fn poll_tx_buf(&mut self, cx: &mut Context<'_>) -> Poll<&mut [u8]>
pub fn tx_done(&mut self)
Auto Trait Implementations§
impl<'d, const MTU: usize> Freeze for Runner<'d, MTU>
impl<'d, const MTU: usize> !RefUnwindSafe for Runner<'d, MTU>
impl<'d, const MTU: usize> !Send for Runner<'d, MTU>
impl<'d, const MTU: usize> !Sync for Runner<'d, MTU>
impl<'d, const MTU: usize> Unpin for Runner<'d, MTU>
impl<'d, const MTU: usize> !UnwindSafe for Runner<'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