pub async fn wait_for_connectivity_lost(
        &self,
        internet_connectivity: bool,
        timeout: std::time::Duration,
    ) -> Result<NetworkManagerState, CaptivePortalError> {
        self.connectivity_changed(timeout, |state| {
            state != NetworkManagerState::Connected
                && (state != NetworkManagerState::ConnectedLimited || internet_connectivity)
        })
            .await
    }
/// The returned future resolves when either the timeout expired or (internet) connectivity is lost
The returned future resolves when either the timeout expired or (internet) connectivity is lost
The returned future resolves when either the timeout expired or ( internet ) connectivity is lost
pub async fn wait_for_connectivity_lost(
        &self,
        internet_connectivity: bool,
        timeout: std::time::Duration,
    ) -> Result<NetworkManagerState, CaptivePortalError> {
        self.connectivity_changed(timeout, |state| {
            state != NetworkManagerState::Connected
                && (state != NetworkManagerState::ConnectedLimited || internet_connectivity)
        })
            .await
    }
pub async fn wait_for_connectivity_lost ( & self , internet_connectivity : bool , timeout : std :: time :: Duration , ) -> Result < NetworkManagerState , CaptivePortalError > { self . connectivity_changed ( timeout , | state | { state != NetworkManagerState :: Connected && ( state != NetworkManagerState :: ConnectedLimited || internet_connectivity ) } ) . await }
The returned future resolves when either the timeout expired or (internet) connectivity is lost
The returned future resolves when either the timeout expired or ( internet ) connectivity is lost
&self
internet_connectivity
bool
timeout
std::time::Duration
&self
internet_connectivity
bool
timeout
std::time::Duration