pub trait IfaceManagerApi {
Show 13 methods
// Required methods
fn disconnect<'life0, 'async_trait>(
&'life0 mut self,
network_id: NetworkIdentifier,
reason: DisconnectReason,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn connect<'life0, 'async_trait>(
&'life0 mut self,
connect_req: ConnectAttemptRequest,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn record_idle_client<'life0, 'async_trait>(
&'life0 mut self,
iface_id: u16,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn has_idle_client<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<bool, Error>> + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn handle_added_iface<'life0, 'async_trait>(
&'life0 mut self,
iface_id: u16,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn handle_removed_iface<'life0, 'async_trait>(
&'life0 mut self,
iface_id: u16,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_sme_proxy_for_scan<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<SmeForScan, Error>> + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn stop_client_connections<'life0, 'async_trait>(
&'life0 mut self,
reason: DisconnectReason,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn start_client_connections<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn start_ap<'life0, 'async_trait>(
&'life0 mut self,
config: ApConfig,
) -> Pin<Box<dyn Future<Output = Result<Receiver<()>, Error>> + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn stop_ap<'life0, 'async_trait>(
&'life0 mut self,
ssid: Ssid,
password: Vec<u8>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn stop_all_aps<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn set_country<'life0, 'async_trait>(
&'life0 mut self,
country_code: Option<CountryCode>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Required Methods§
Sourcefn disconnect<'life0, 'async_trait>(
&'life0 mut self,
network_id: NetworkIdentifier,
reason: DisconnectReason,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn disconnect<'life0, 'async_trait>(
&'life0 mut self,
network_id: NetworkIdentifier,
reason: DisconnectReason,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Finds the client iface with the given network configuration, disconnects from the network, and removes the client’s network configuration information.
Sourcefn connect<'life0, 'async_trait>(
&'life0 mut self,
connect_req: ConnectAttemptRequest,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn connect<'life0, 'async_trait>(
&'life0 mut self,
connect_req: ConnectAttemptRequest,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Selects a client iface, ensures that a ClientSmeProxy and client connectivity state machine exists for the iface, and then issues a connect request to the client connectivity state machine.
Sourcefn record_idle_client<'life0, 'async_trait>(
&'life0 mut self,
iface_id: u16,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn record_idle_client<'life0, 'async_trait>(
&'life0 mut self,
iface_id: u16,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Marks an existing client interface as unconfigured.
Sourcefn has_idle_client<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<bool, Error>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn has_idle_client<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<bool, Error>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Returns an indication of whether or not any client interfaces are unconfigured.
Sourcefn handle_added_iface<'life0, 'async_trait>(
&'life0 mut self,
iface_id: u16,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn handle_added_iface<'life0, 'async_trait>(
&'life0 mut self,
iface_id: u16,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Queries the properties of the provided interface ID and internally accounts for the newly added client or AP.
Sourcefn handle_removed_iface<'life0, 'async_trait>(
&'life0 mut self,
iface_id: u16,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn handle_removed_iface<'life0, 'async_trait>(
&'life0 mut self,
iface_id: u16,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Removes all internal references of the provided interface ID.
Sourcefn get_sme_proxy_for_scan<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<SmeForScan, Error>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_sme_proxy_for_scan<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<SmeForScan, Error>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Selects a client iface and return it for use with a scan
Sourcefn stop_client_connections<'life0, 'async_trait>(
&'life0 mut self,
reason: DisconnectReason,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn stop_client_connections<'life0, 'async_trait>(
&'life0 mut self,
reason: DisconnectReason,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Disconnects all configured clients and disposes of all client ifaces before instructing the PhyManager to stop client connections.
Sourcefn start_client_connections<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn start_client_connections<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Passes the call to start client connections through to the PhyManager.
Sourcefn start_ap<'life0, 'async_trait>(
&'life0 mut self,
config: ApConfig,
) -> Pin<Box<dyn Future<Output = Result<Receiver<()>, Error>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn start_ap<'life0, 'async_trait>(
&'life0 mut self,
config: ApConfig,
) -> Pin<Box<dyn Future<Output = Result<Receiver<()>, Error>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Starts an AP interface with the provided configuration.
Sourcefn stop_ap<'life0, 'async_trait>(
&'life0 mut self,
ssid: Ssid,
password: Vec<u8>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn stop_ap<'life0, 'async_trait>(
&'life0 mut self,
ssid: Ssid,
password: Vec<u8>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Stops the AP interface corresponding to the provided configuration and destroys it.
Sourcefn stop_all_aps<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn stop_all_aps<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Stops all AP interfaces and destroys them.
Sourcefn set_country<'life0, 'async_trait>(
&'life0 mut self,
country_code: Option<CountryCode>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn set_country<'life0, 'async_trait>(
&'life0 mut self,
country_code: Option<CountryCode>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Sets the country code for WLAN PHYs.