Struct smoltcp::phy::TapInterface
[−]
[src]
pub struct TapInterface { /* fields omitted */ }
A virtual Ethernet interface.
Methods
impl TapInterface
[src]
fn new(name: &str) -> Result<TapInterface>
Attaches to a TAP interface called name
, or creates it if it does not exist.
If name
is a persistent interface configured with UID of the current user,
no special privileges are needed. Otherwise, this requires superuser privileges
or a corresponding capability set on the executable.