pub struct WifiNetwork {
pub ssid: String,
pub strength: u8,
pub secured: bool,
pub security: WifiSecurity,
pub connected: bool,
pub device: String,
pub access_point: String,
}Expand description
A Wi-Fi network a device sees.
Fields§
§ssid: StringIts name, at most 32 bytes, with bytes that aren’t UTF-8 shown as
�.
strength: u8How strong its strongest access point is, from 0 to 100.
secured: boolWhether it asks for a key: any security but
Open, Owe and Unknown.
security: WifiSecurityHow its strongest access point is secured.
connected: boolWhether the device is connected to it, through any of its access points.
device: StringThe path of the device that sees it.
access_point: StringThe path of its strongest access point.
Trait Implementations§
Source§impl Clone for WifiNetwork
impl Clone for WifiNetwork
Source§impl Debug for WifiNetwork
impl Debug for WifiNetwork
Source§impl PartialEq for WifiNetwork
impl PartialEq for WifiNetwork
impl StructuralPartialEq for WifiNetwork
Auto Trait Implementations§
impl Forget for WifiNetwork
impl Freeze for WifiNetwork
impl Move for WifiNetwork
impl RefUnwindSafe for WifiNetwork
impl Send for WifiNetwork
impl Sync for WifiNetwork
impl Unpin for WifiNetwork
impl UnsafeUnpin for WifiNetwork
impl UnwindSafe for WifiNetwork
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