Trait net_util::sys::linux::TapTLinux

source ·
pub trait TapTLinux {
    // Required methods
    fn set_vnet_hdr_size(&self, size: usize) -> Result<(), Error>;
    fn if_flags(&self) -> u32;
}
Expand description

Linux-specific TAP functions

Required Methods§

source

fn set_vnet_hdr_size(&self, size: usize) -> Result<(), Error>

Set the size of the vnet hdr.

source

fn if_flags(&self) -> u32

Get the interface flags

Implementors§