pub async fn deactivate_hotspots(&self) -> Result<(), CaptivePortalError> {
        use generated::device::NetConnmanIwdDevice;
        use generated::device::NetConnmanIwdStation;
        let p = nonblock::Proxy::new(NM_BUSNAME, self.wifi_device_path.clone(), self.conn.clone());
        if p.mode().await? != "station" {
            p.set_mode("station".into()).await?;
        }
        Ok(())
    }
/// iwd does not store hotspot/APs as "known network"s, so there is nothing to deactivate.
/// This method will however change from hotspot/AP mode into station mode if necessary.
iwd does not store hotspot/APs as "known network"s, so there is nothing to deactivate.
This method will however change from hotspot/AP mode into station mode if necessary.
iwd does not store hotspot / APs as " known network " s so there is nothing to deactivate . This method will however change from hotspot / AP mode into station mode if necessary .
pub async fn deactivate_hotspots(&self) -> Result<(), CaptivePortalError> {
        use generated::device::NetConnmanIwdDevice;
        use generated::device::NetConnmanIwdStation;
        let p = nonblock::Proxy::new(NM_BUSNAME, self.wifi_device_path.clone(), self.conn.clone());
        if p.mode().await? != "station" {
            p.set_mode("station".into()).await?;
        }
        Ok(())
    }
pub async fn deactivate_hotspots ( & self ) -> Result < ( ) , CaptivePortalError > { use generated :: device :: NetConnmanIwdDevice ; use generated :: device :: NetConnmanIwdStation ; let p = nonblock :: Proxy :: new ( NM_BUSNAME , self . wifi_device_path . clone ( ) , self . conn . clone ( ) ) ; if p . mode ( ) . await ? != " " { p . set_mode ( " " . into ( ) ) . await ? ; } Ok ( ( ) ) }
iwd does not store hotspot/APs as "known network"s, so there is nothing to deactivate.
iwd does not store hotspot / APs as " known network " s so there is nothing to deactivate .
&self
&self