Struct wifi_ctrl::sta::RequestClient
source · pub struct RequestClient { /* private fields */ }
Expand description
Request client wraps the request events, awaiting oneshot channels when appropriate
Implementations§
source§impl RequestClient
impl RequestClient
pub async fn get_scan(&self) -> Result<Arc<Vec<ScanResult>>>
pub async fn get_networks(&self) -> Result<Vec<NetworkResult>>
pub async fn get_status(&self) -> Result<Status>
pub async fn add_network(&self) -> Result<usize>
pub async fn set_network_psk(&self, network_id: usize, psk: String) -> Result
pub async fn set_network_ssid(&self, network_id: usize, ssid: String) -> Result
pub async fn save_config(&self) -> Result
pub async fn remove_network(&self, network_id: usize) -> Result
pub async fn select_network(&self, network_id: usize) -> Result<SelectResult>
pub async fn shutdown(&self) -> Result
Trait Implementations§
source§impl Clone for RequestClient
impl Clone for RequestClient
source§fn clone(&self) -> RequestClient
fn clone(&self) -> RequestClient
Returns a copy 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 more