pub async fn scan_networks(&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" {
            return Err(CaptivePortalError::NotInStationMode);
        }
        p.scan().await?;
        Ok(())
    }
/// Scan for access points if the last scan is older than 10 seconds
Scan for access points if the last scan is older than 10 seconds
Scan for access points if the last scan is older than 10 seconds
pub async fn scan_networks(&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" {
            return Err(CaptivePortalError::NotInStationMode);
        }
        p.scan().await?;
        Ok(())
    }
pub async fn scan_networks ( & 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 ? != " " { return Err ( CaptivePortalError :: NotInStationMode ) ; } p . scan ( ) . await ? ; Ok ( ( ) ) }
Scan for access points if the last scan is older than 10 seconds
Scan for access points if the last scan is older than 10 seconds
&self
&self