pub async fn enable_networking_and_wifi(&self) -> Result<(), CaptivePortalError> {
        let p = nonblock::Proxy::new(NM_BUSNAME, NM_PATH, self.conn.clone());
        use networkmanager::NetworkManager;
        if !p.networking_enabled().await? {
            p.enable(true).await?;
        }
        if !p.wireless_enabled().await? {
            p.set_wireless_enabled(true).await?;
        }
        if p.connectivity_check_available().await? {
            p.set_connectivity_check_enabled(true).await?;
        }
        Ok(())
    }
/// Network might be disabled or "unmanaged". This method tries to enable networking and wifi.
Network might be disabled or "unmanaged". This method tries to enable networking and wifi.
Network might be disabled or " unmanaged " . This method tries to enable networking and wifi .
pub async fn enable_networking_and_wifi(&self) -> Result<(), CaptivePortalError> {
        let p = nonblock::Proxy::new(NM_BUSNAME, NM_PATH, self.conn.clone());
        use networkmanager::NetworkManager;
        if !p.networking_enabled().await? {
            p.enable(true).await?;
        }
        if !p.wireless_enabled().await? {
            p.set_wireless_enabled(true).await?;
        }
        if p.connectivity_check_available().await? {
            p.set_connectivity_check_enabled(true).await?;
        }
        Ok(())
    }
pub async fn enable_networking_and_wifi ( & self ) -> Result < ( ) , CaptivePortalError > { let p = nonblock :: Proxy :: new ( NM_BUSNAME , NM_PATH , self . conn . clone ( ) ) ; use networkmanager :: NetworkManager ; if ! p . networking_enabled ( ) . await ? { p . enable ( true ) . await ? ; } if ! p . wireless_enabled ( ) . await ? { p . set_wireless_enabled ( true ) . await ? ; } if p . connectivity_check_available ( ) . await ? { p . set_connectivity_check_enabled ( true ) . await ? ; } Ok ( ( ) ) }
Network might be disabled or "unmanaged".
Network might be disabled or " unmanaged " .
&self
&self