Struct objtalk::client::HttpClient
source · pub struct HttpClient { /* private fields */ }
Implementations
sourceimpl 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 RefUnwindSafe for HttpClient
impl Send for HttpClient
impl Sync for HttpClient
impl Unpin for HttpClient
impl UnwindSafe for HttpClient
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be
Self