Struct smoltcp::phy::RawSocket
[−]
[src]
pub struct RawSocket { /* fields omitted */ }
A socket that captures or transmits the complete frame.
Methods
impl RawSocket
[src]
fn new(name: &str) -> Result<RawSocket>
[src]
Creates a raw socket, bound to the interface called name
.
This requires superuser privileges or a corresponding capability bit set on the executable.
Trait Implementations
impl Debug for RawSocket
[src]
impl AsRawFd for RawSocket
[src]
impl Device for RawSocket
[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