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_status(&self) -> Result<Status>
pub async fn get_config(&self) -> Result<Config>
pub async fn enable(&self) -> Result
pub async fn disable(&self) -> Result
pub async fn set_value(&self, key: &str, value: &str) -> Result
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