pub struct WiFi { /* private fields */ }
Expand description
Wireless network interface for linux operating system.
Implementations§
Trait Implementations§
Source§impl Connectivity for WiFi
Wireless network connectivity functionality.
impl Connectivity for WiFi
Wireless network connectivity functionality.
Source§fn connect(
&mut self,
ssid: &str,
password: &str,
) -> Result<bool, WifiConnectionError>
fn connect( &mut self, ssid: &str, password: &str, ) -> Result<bool, WifiConnectionError>
Attempts to connect to a wireless network with a given SSID and password.
Source§fn disconnect(&self) -> Result<bool, WifiConnectionError>
fn disconnect(&self) -> Result<bool, WifiConnectionError>
Attempts to disconnect from a wireless network currently connected to.
Source§impl WifiHotspot for WiFi
Wireless hotspot functionality for a wifi interface.
impl WifiHotspot for WiFi
Wireless hotspot functionality for a wifi interface.
Source§fn create_hotspot(
&mut self,
ssid: &str,
password: &str,
configuration: Option<&HotspotConfig>,
) -> Result<bool, WifiHotspotError>
fn create_hotspot( &mut self, ssid: &str, password: &str, configuration: Option<&HotspotConfig>, ) -> Result<bool, WifiHotspotError>
Creates wireless hotspot service for host machine. This only creats the wifi network,
and isn’t responsible for initiating the serving of the wifi network process.
To begin serving the hotspot, use start_hotspot()
.
Source§fn start_hotspot() -> Result<bool, WifiHotspotError>
fn start_hotspot() -> Result<bool, WifiHotspotError>
Start serving publicly an already created wireless hotspot.
Source§fn stop_hotspot(&mut self) -> Result<bool, WifiHotspotError>
fn stop_hotspot(&mut self) -> Result<bool, WifiHotspotError>
Stop serving a wireless network.
NOTE: All users connected will automatically be disconnected.
Auto Trait Implementations§
impl Freeze for Linux
impl RefUnwindSafe for Linux
impl Send for Linux
impl Sync for Linux
impl Unpin for Linux
impl UnwindSafe for Linux
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