pub fn configure(&mut self, cfg: TunConfig) -> Result<(), TunError> {
        if let Some((ip, mask)) = cfg.ip {
            self.assign_ip(ip, mask)?;
        }

        Ok(())
    }
/// Applies the tunnel config settings to this TUN device
///
/// # Arguments
/// * `cfg` - Tunnel Configuration Options
Applies the tunnel config settings to this TUN device
Applies the tunnel config settings to this TUN device
pub fn configure(&mut self, cfg: TunConfig) -> Result<(), TunError> {
        if let Some((ip, mask)) = cfg.ip {
            self.assign_ip(ip, mask)?;
        }
        Ok(())
    }
pub fn configure ( & mut self , cfg : TunConfig ) -> Result < ( ) , TunError > { if let Some ( ( ip , mask ) ) = cfg . ip { self . assign_ip ( ip , mask ) ? ; } Ok ( ( ) ) }
Applies the tunnel config settings to this TUN device
Applies the tunnel config settings to this TUN device
&mut self
cfg
TunConfig
&mut self
cfg
TunConfig