pub struct IfaceManager {
pub sender: Sender<IfaceManagerRequest>,
}
Fields§
§sender: Sender<IfaceManagerRequest>
Trait Implementations§
source§impl Clone for IfaceManager
impl Clone for IfaceManager
source§fn clone(&self) -> IfaceManager
fn clone(&self) -> IfaceManager
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl IfaceManagerApi for IfaceManager
impl IfaceManagerApi for IfaceManager
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,
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,
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,
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,
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,
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,
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,
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 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.
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,
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 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 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 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.
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,
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.
Auto Trait Implementations§
impl Freeze for IfaceManager
impl !RefUnwindSafe for IfaceManager
impl Send for IfaceManager
impl Sync for IfaceManager
impl Unpin for IfaceManager
impl !UnwindSafe for IfaceManager
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more