Trait appium_client::commands::network::HasNetworkState
source · pub trait HasNetworkState: AppiumClientTrait {
// Provided methods
fn set_connection<'life0, 'life1, 'async_trait>(
&'life0 self,
state: &'life1 ConnectionState
) -> Pin<Box<dyn Future<Output = Result<(), CmdError>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
fn get_connection<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<ConnectionState, CmdError>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait { ... }
}
Expand description
Check network status (wifi, mobile data, airplane, or change status in emulator)