pub struct AccessPoint {
pub ssid: String,
pub bssid: String,
pub signal: WifiSignal,
pub frequency_mhz: u32,
pub security: WifiSecurity,
pub in_use: bool,
}Expand description
A nearby wifi access point from an NM scan.
Fields§
§ssid: StringNetwork name. Empty string when the SSID is hidden.
bssid: StringBSSID (MAC address of the AP).
signal: WifiSignalSignal strength.
frequency_mhz: u32Channel frequency in MHz (e.g. 2412, 5180).
security: WifiSecuritySecurity classification decoded from NM’s WpaFlags/RsnFlags.
in_use: booltrue when this is the currently associated AP.
Trait Implementations§
Source§impl Clone for AccessPoint
impl Clone for AccessPoint
Source§fn clone(&self) -> AccessPoint
fn clone(&self) -> AccessPoint
Returns a duplicate 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 Debug for AccessPoint
impl Debug for AccessPoint
Source§impl<'de> Deserialize<'de> for AccessPoint
impl<'de> Deserialize<'de> for AccessPoint
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AccessPoint
impl RefUnwindSafe for AccessPoint
impl Send for AccessPoint
impl Sync for AccessPoint
impl Unpin for AccessPoint
impl UnsafeUnpin for AccessPoint
impl UnwindSafe for AccessPoint
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