pub struct HttpClient { /* private fields */ }
Implementations§
Source§impl HttpClient
impl HttpClient
pub fn new<S: Into<String>>(url: S) -> Self
pub async fn get<S: Into<String>>( &self, pattern: S, ) -> Result<Vec<Object>, Error>
pub async fn set<S: Into<String>>( &self, name: S, value: Value, ) -> Result<(), Error>
pub async fn patch<S: Into<String>>( &self, name: S, value: Value, ) -> Result<(), Error>
pub async fn remove<S: Into<String>>(&self, name: S) -> Result<bool, Error>
pub async fn emit<S: Into<String>, S2: Into<String>>( &self, object: S, event: S2, data: Value, ) -> Result<(), Error>
pub async fn invoke<S: Into<String>, S2: Into<String>>( &self, object: S, method: S2, args: Value, ) -> Result<Value, Error>
Auto Trait Implementations§
impl Freeze for HttpClient
impl RefUnwindSafe for HttpClient
impl Send for HttpClient
impl Sync for HttpClient
impl Unpin for HttpClient
impl UnwindSafe for HttpClient
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