pub struct BaseClient { /* private fields */ }
Available on crate features
runtime-tokio-hyper
or runtime-tokio-hyper-rustls
or runtime-tokio-hyper-rustls-webpki
or runtime-blocking
or runtime-blocking-rustls
or runtime-blocking-rustls-webpki
only.Implementations§
Source§impl TokioClient
impl TokioClient
pub fn new() -> Self
pub fn execute<T: DeserializeOwned + Send + 'static>( &self, request: Request, strategy: &RequestStrategy, ) -> Response<T>
Trait Implementations§
Source§impl Clone for TokioClient
impl Clone for TokioClient
Source§fn clone(&self) -> TokioClient
fn clone(&self) -> TokioClient
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 moreAuto Trait Implementations§
impl Freeze for TokioClient
impl !RefUnwindSafe for TokioClient
impl Send for TokioClient
impl Sync for TokioClient
impl Unpin for TokioClient
impl !UnwindSafe for TokioClient
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