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
)