pub struct BlockingClient {
pub client: Arc<Mutex<Client>>,
pub url: String,
pub path: String,
}
Fields§
§client: Arc<Mutex<Client>>
§url: String
§path: String
Implementations§
Source§impl BlockingClient
impl BlockingClient
pub fn get(&self) -> BlockingRequest
pub fn post(&self) -> BlockingRequest
pub fn put(&self) -> BlockingRequest
pub fn delete(&self) -> BlockingRequest
pub fn head(&self) -> BlockingRequest
pub fn patch(&self) -> BlockingRequest
Trait Implementations§
Source§impl Clone for BlockingClient
impl Clone for BlockingClient
Source§fn clone(&self) -> BlockingClient
fn clone(&self) -> BlockingClient
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 BlockingClient
impl From<ClientConfig> for BlockingClient
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 BlockingClient
impl RefUnwindSafe for BlockingClient
impl Send for BlockingClient
impl Sync for BlockingClient
impl Unpin for BlockingClient
impl UnwindSafe for BlockingClient
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