pub struct WifiConnection {
pub ssid: String,
pub connected: bool,
pub interface: Option<String>,
pub method: Option<String>,
}Expand description
Result of connecting the box to a WiFi network.
Fields§
§ssid: StringSSID the box joined.
connected: boolWhether the connection succeeded (always true in a success envelope).
interface: Option<String>Interface used, e.g. "wlan0".
method: Option<String>Connection method, e.g. "nmcli" or "wpa_supplicant".
Trait Implementations§
Source§impl Clone for WifiConnection
impl Clone for WifiConnection
Source§fn clone(&self) -> WifiConnection
fn clone(&self) -> WifiConnection
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 WifiConnection
impl Debug for WifiConnection
Source§impl<'de> Deserialize<'de> for WifiConnection
impl<'de> Deserialize<'de> for WifiConnection
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 WifiConnection
impl RefUnwindSafe for WifiConnection
impl Send for WifiConnection
impl Sync for WifiConnection
impl Unpin for WifiConnection
impl UnsafeUnpin for WifiConnection
impl UnwindSafe for WifiConnection
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