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 send_custom(&self, custom: String) -> Result<String>
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 set_network_bssid( &self, network_id: usize, bssid: String, ) -> Result
pub async fn set_network_keymgmt( &self, network_id: usize, mgmt: KeyMgmt, ) -> Result
pub async fn save_config(&self) -> Result
pub async fn remove_network(&self, network_id: usize) -> Result
pub async fn remove_all_networks(&self) -> 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 moreAuto Trait Implementations§
impl Freeze for RequestClient
impl RefUnwindSafe for RequestClient
impl Send for RequestClient
impl Sync for RequestClient
impl Unpin for RequestClient
impl UnwindSafe for RequestClient
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