IfaceManagerApi

Trait IfaceManagerApi 

Source
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§

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Implementors§