pub struct WpaControlReq { /* private fields */ }
Expand description
Request type
Max message size 127 bytes
Implementations§
Source§impl WpaControlReq
impl WpaControlReq
Sourcepub const fn raw(text: &str) -> Self
pub const fn raw(text: &str) -> Self
Creates raw request, 127 bytes maximum
Panics on overflow.
Sourcepub const fn scan_results() -> Self
pub const fn scan_results() -> Self
Creates SCAN_RESULTS request
Sourcepub const fn disconnect() -> Self
pub const fn disconnect() -> Self
Creates DISCONNECT request
Sourcepub const fn reassociate() -> Self
pub const fn reassociate() -> Self
Creates REASSOCIATE request
Sourcepub const fn list_networks() -> Self
pub const fn list_networks() -> Self
Creates LIST_NETWORKS request
Sourcepub fn add_network() -> Self
pub fn add_network() -> Self
Creates ENABLE_NETWORK request
Sourcepub fn get_network(id: Id, var: &str) -> Self
pub fn get_network(id: Id, var: &str) -> Self
Creates GET_NETWORK request
Sourcepub fn set_network(id: Id, var: &str, value: impl Display) -> Self
pub fn set_network(id: Id, var: &str, value: impl Display) -> Self
Creates SET_NETWORK request
Sourcepub fn select_network(id: Id) -> Self
pub fn select_network(id: Id) -> Self
Creates SELECT_NETWORK request
Sourcepub fn enable_network(id: Id) -> Self
pub fn enable_network(id: Id) -> Self
Creates ENABLE_NETWORK request
Sourcepub fn disable_network(id: Id) -> Self
pub fn disable_network(id: Id) -> Self
Creates DISABLE_NETWORK request
Sourcepub fn remove_network(id: Id) -> Self
pub fn remove_network(id: Id) -> Self
Creates REMOVE_NETWORK request
Sourcepub fn remove_network_all() -> Self
pub fn remove_network_all() -> Self
Creates REMOVE_NETWORK all request
Sourcepub fn save_config() -> Self
pub fn save_config() -> Self
Creates SAVE_CONFIG request
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WpaControlReq
impl RefUnwindSafe for WpaControlReq
impl Send for WpaControlReq
impl Sync for WpaControlReq
impl Unpin for WpaControlReq
impl UnwindSafe for WpaControlReq
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