Struct smoltcp::phy::Loopback
[−]
[src]
pub struct Loopback(_);
A loopback device.
Methods
impl Loopback
[src]
fn new() -> Loopback
[src]
Creates a loopback device.
Every packet transmitted through this device will be received through it in FIFO order.
Trait Implementations
impl Debug for Loopback
[src]
impl Device for Loopback
[src]
type RxBuffer = Vec<u8>
type TxBuffer = TxBuffer
fn limits(&self) -> DeviceLimits
[src]
Get a description of device limitations.
fn receive(&mut self, _timestamp: u64) -> Result<Self::RxBuffer>
[src]
Receive a frame. Read more
fn transmit(&mut self, _timestamp: u64, length: usize) -> Result<Self::TxBuffer>
[src]
Transmit a frame. Read more