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§

source

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.

source

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.

source

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.

source

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.

source

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.

source

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.

source

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

source

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.

source

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.

source

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.

source

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.

source

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.

source

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,

Returns whether or not there is an iface that can support a WPA3 connection.

source

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,

Sets the country code for WLAN PHYs.

Implementors§