pub struct TunConfig {
pub name: String,
pub address: Ipv4Addr,
pub destination: Ipv4Addr,
pub netmask: Ipv4Addr,
pub mtu: u16,
}Expand description
Configuration for a TUN virtual network interface.
Fields§
§name: StringInterface name (e.g. “vcl0”). Max 15 chars on Linux.
address: Ipv4AddrLocal IP address assigned to the TUN interface.
destination: Ipv4AddrRemote end of the point-to-point link.
netmask: Ipv4AddrNetmask for the TUN interface.
mtu: u16MTU in bytes. Default 1420 leaves room for VCL headers over UDP.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TunConfig
impl RefUnwindSafe for TunConfig
impl Send for TunConfig
impl Sync for TunConfig
impl Unpin for TunConfig
impl UnsafeUnpin for TunConfig
impl UnwindSafe for TunConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more