[][src]Struct stm32_eth::EthTxToken

pub struct EthTxToken<'a> { /* fields omitted */ }

Just a reference to Eth for sending a packet later with consume()

Trait Implementations

impl<'a> TxToken for EthTxToken<'a>[src]

fn consume<R, F>(
    self,
    _timestamp: Instant,
    len: usize,
    f: F
) -> Result<R, Error> where
    F: FnOnce(&mut [u8]) -> Result<R, Error>, 
[src]

Allocate a Buffer, yield with f(buffer), and send it as an Ethernet packet.

Auto Trait Implementations

impl<'a> !Send for EthTxToken<'a>

impl<'a> !Sync for EthTxToken<'a>

Blanket Implementations

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same for T

type Output = T

Should always be Self