pub struct AsyncClient {
pub client: Arc<Mutex<Client>>,
pub url: String,
pub path: String,
}
Fields§
§client: Arc<Mutex<Client>>
§url: String
§path: String
Implementations§
Source§impl AsyncClient
impl AsyncClient
pub fn get(&self) -> AsyncRequestBuilder
pub fn post(&self) -> AsyncRequestBuilder
pub fn put(&self) -> AsyncRequestBuilder
pub fn delete(&self) -> AsyncRequestBuilder
Trait Implementations§
Source§impl Clone for AsyncClient
impl Clone for AsyncClient
Source§fn clone(&self) -> AsyncClient
fn clone(&self) -> AsyncClient
Returns a duplicate 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 moreSource§impl From<ClientConfig> for AsyncClient
impl From<ClientConfig> for AsyncClient
Source§fn from(config: ClientConfig) -> Self
fn from(config: ClientConfig) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AsyncClient
impl RefUnwindSafe for AsyncClient
impl Send for AsyncClient
impl Sync for AsyncClient
impl Unpin for AsyncClient
impl UnwindSafe for AsyncClient
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