pub trait IfaceManagerApi {
Show 14 methods
// Required methods
fn disconnect<'life0, 'async_trait>(
&'life0 mut self,
network_id: NetworkIdentifier,
reason: DisconnectReason
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + '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>> + Send + '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>> + Send + '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>> + Send + '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>> + Send + '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>> + Send + '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>> + Send + '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>> + Send + '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>> + Send + '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>> + Send + '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>> + Send + '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>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn has_wpa3_capable_client<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<bool, Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn set_country<'life0, 'async_trait>(
&'life0 mut self,
country_code: Option<[u8; 2]>
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + '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>> + Send + '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>> + Send + '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>> + Send + '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>> + Send + '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>> + Send + '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>> + Send + '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>> + Send + '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>> + Send + '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>> + Send + '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>> + Send + '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>> + Send + '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>> + Send + '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>> + Send + '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>> + Send + '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>> + Send + '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>> + Send + '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>> + Send + '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>> + Send + '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>> + Send + '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>> + Send + '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>> + Send + '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>> + Send + '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>> + Send + '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>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Stops all AP interfaces and destroys them.