pub struct CWWiFiClient { /* private fields */ }Expand description
“A wrapper around the entire Wi-Fi subsystem that you use to access interfaces and set up event notifications.”
Implementations§
Source§impl CWWiFiClient
impl CWWiFiClient
“The shared Wi-Fi client object.”
Sourcepub fn init() -> CWWiFiClient
pub fn init() -> CWWiFiClient
“Initializes a Wi-Fi client object.” You probably want to use CWWiFiClient::sharedWiFiClient.
Sourcepub fn interface(&self) -> CWInterface
pub fn interface(&self) -> CWInterface
“Returns the default Wi-Fi interface.”
Sourcepub fn interface_with_name(&self, name: &str) -> CWInterface
pub fn interface_with_name(&self, name: &str) -> CWInterface
“Returns the Wi-Fi interface with the given name.” TODO: Test what happens when an invalid interface name is passed.
Sourcepub fn interfaces(&self) -> Vec<CWInterface>
pub fn interfaces(&self) -> Vec<CWInterface>
“Returns all available Wi-Fi interfaces.”
Sourcepub fn interfaceNames(&self) -> Vec<String>
pub fn interfaceNames(&self) -> Vec<String>
“Returns the list of the names of available Wi-Fi interfaces.”
Auto Trait Implementations§
impl Freeze for CWWiFiClient
impl RefUnwindSafe for CWWiFiClient
impl !Send for CWWiFiClient
impl !Sync for CWWiFiClient
impl Unpin for CWWiFiClient
impl UnwindSafe for CWWiFiClient
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