pub struct Status {
pub wpa_state: Option<String>,
pub ssid: Option<String>,
pub bssid: Option<String>,
pub id: Option<usize>,
pub freq: Option<u32>,
pub address: Option<String>,
pub ip_address: Option<String>,
pub key_mgmt: Option<String>,
pub mode: Option<String>,
pub raw: HashMap<String, String>,
}Expand description
Parsed output of wpa_cli status.
The commonly-present fields are typed for convenience; everything the
supplicant reports is also available untouched via Status::raw /
Status::get, so newer or driver-specific keys are never lost. Missing
keys simply leave the corresponding field as None rather than failing the
whole parse.
Fields§
§wpa_state: Option<String>§ssid: Option<String>§bssid: Option<String>§id: Option<usize>§freq: Option<u32>§address: Option<String>§ip_address: Option<String>§key_mgmt: Option<String>§mode: Option<String>§raw: HashMap<String, String>Every key/value pair from the response, including those surfaced as typed fields above.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Status
impl RefUnwindSafe for Status
impl Send for Status
impl Sync for Status
impl Unpin for Status
impl UnsafeUnpin for Status
impl UnwindSafe for Status
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