pub struct VlanSplitterDriver<'d, D: Driver + 'd, const N: usize> { /* private fields */ }Expand description
VLAN splitter driver
Trait Implementations§
Source§impl<'d, D: Driver + 'd, const N: usize> Driver for VlanSplitterDriver<'d, D, N>
impl<'d, D: Driver + 'd, const N: usize> Driver for VlanSplitterDriver<'d, D, N>
Source§type RxToken<'a> = VlanRxToken<'d, D, N>
where
Self: 'a
type RxToken<'a> = VlanRxToken<'d, D, N> where Self: 'a
A token to receive a single network packet.
Source§type TxToken<'a> = VlanTxToken<'d, D, N>
where
Self: 'a
type TxToken<'a> = VlanTxToken<'d, D, N> where Self: 'a
A token to transmit a single network packet.
Source§fn receive(
&mut self,
cx: &mut Context<'_>,
) -> Option<(Self::RxToken<'_>, Self::TxToken<'_>)>
fn receive( &mut self, cx: &mut Context<'_>, ) -> Option<(Self::RxToken<'_>, Self::TxToken<'_>)>
Construct a token pair consisting of one receive token and one transmit token. Read more
Source§fn transmit(&mut self, cx: &mut Context<'_>) -> Option<Self::TxToken<'_>>
fn transmit(&mut self, cx: &mut Context<'_>) -> Option<Self::TxToken<'_>>
Construct a transmit token. Read more
Source§fn poll_timestamp(&mut self, cx: &mut Context<'_>) -> Option<(u8, Timestamp)>
fn poll_timestamp(&mut self, cx: &mut Context<'_>) -> Option<(u8, Timestamp)>
Poll the driver for timestamps and return a pair of (id,
Timestamp) Read moreSource§fn capabilities(&self) -> Capabilities
fn capabilities(&self) -> Capabilities
Get a description of device capabilities.
Source§fn hardware_address(&self) -> HardwareAddress
fn hardware_address(&self) -> HardwareAddress
Get the device’s hardware address. Read more
Auto Trait Implementations§
impl<'d, D, const N: usize> Freeze for VlanSplitterDriver<'d, D, N>
impl<'d, D, const N: usize> !RefUnwindSafe for VlanSplitterDriver<'d, D, N>
impl<'d, D, const N: usize> !Send for VlanSplitterDriver<'d, D, N>
impl<'d, D, const N: usize> !Sync for VlanSplitterDriver<'d, D, N>
impl<'d, D, const N: usize> Unpin for VlanSplitterDriver<'d, D, N>
impl<'d, D, const N: usize> !UnwindSafe for VlanSplitterDriver<'d, D, N>
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