Struct tun::Configuration
[−]
[src]
pub struct Configuration<T: Device> { /* fields omitted */ }
Methods
impl<T: Device> Configuration<T>
[src]
fn new(inner: T) -> Self
fn name<S: AsRef<str>>(&mut self, name: S) -> Result<&mut Self>
fn address<A: IntoAddress>(&mut self, value: A) -> Result<&mut Self>
fn destination<A: IntoAddress>(&mut self, value: A) -> Result<&mut Self>
fn broadcast<A: IntoAddress>(&mut self, value: A) -> Result<&mut Self>
fn netmask<A: IntoAddress>(&mut self, value: A) -> Result<&mut Self>
fn mtu(&mut self, value: i32) -> Result<&mut Self>
fn device<F>(&mut self, f: F) -> Result<&mut Self> where
F: FnOnce(&mut T) -> Result<()>,
F: FnOnce(&mut T) -> Result<()>,