pub struct HyperClient<B = Full<Bytes>, S = Client<HttpConnector, Full<Bytes>>> { /* private fields */ }
Available on non-WebAssembly and crate feature
hyper
only.Expand description
A hyper based client that can be used with tower layers.
Implementations§
source§impl HyperClient
impl HyperClient
sourcepub fn new() -> Self
pub fn new() -> Self
Create a new HyperClient with the given URL and default hyper client.
source§impl<B, S> HyperClient<B, S>
impl<B, S> HyperClient<B, S>
sourcepub const fn with_service(service: S) -> Self
pub const fn with_service(service: S) -> Self
Create a new HyperClient with the given URL and service.
Trait Implementations§
source§impl<B: Clone, S: Clone> Clone for HyperClient<B, S>
impl<B: Clone, S: Clone> Clone for HyperClient<B, S>
source§fn clone(&self) -> HyperClient<B, S>
fn clone(&self) -> HyperClient<B, S>
Returns a copy 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<B, S> Freeze for HyperClient<B, S>where
S: Freeze,
impl<B, S> RefUnwindSafe for HyperClient<B, S>where
S: RefUnwindSafe,
B: RefUnwindSafe,
impl<B, S> Send for HyperClient<B, S>
impl<B, S> Sync for HyperClient<B, S>
impl<B, S> Unpin for HyperClient<B, S>
impl<B, S> UnwindSafe for HyperClient<B, S>where
S: UnwindSafe,
B: UnwindSafe,
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)