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>
Creates a raw socket, bound to the interface called name
.
This requires superuser privileges or a corresponding capability bit set on the executable.