pub struct HyperTransport { /* private fields */ }Expand description
The transport a client uses unless it is given another: a pooled HTTP/1.1 and HTTP/2 client over TLS.
Cloning it shares the connection pool.
Trait Implementations§
Source§impl Clone for HyperTransport
impl Clone for HyperTransport
Source§impl Debug for HyperTransport
impl Debug for HyperTransport
Source§impl Service<Request<Body>> for HyperTransport
impl Service<Request<Body>> for HyperTransport
Auto Trait Implementations§
impl !RefUnwindSafe for HyperTransport
impl !UnwindSafe for HyperTransport
impl Freeze for HyperTransport
impl Send for HyperTransport
impl Sync for HyperTransport
impl Unpin for HyperTransport
impl UnsafeUnpin for HyperTransport
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<S, B> HttpService for Swhere
S: Service<Request<Body>, Response = Response<B>> + Clone + Send + Sync + 'static,
<S as Service<Request<Body>>>::Error: Into<Box<dyn Error + Send + Sync>>,
<S as Service<Request<Body>>>::Future: Send,
B: Body + Send + 'static,
<B as Body>::Data: Send,
<B as Body>::Error: Into<Box<dyn Error + Send + Sync>>,
impl<S, B> HttpService for Swhere
S: Service<Request<Body>, Response = Response<B>> + Clone + Send + Sync + 'static,
<S as Service<Request<Body>>>::Error: Into<Box<dyn Error + Send + Sync>>,
<S as Service<Request<Body>>>::Future: Send,
B: Body + Send + 'static,
<B as Body>::Data: Send,
<B as Body>::Error: Into<Box<dyn Error + Send + Sync>>,
Source§type ResponseBody = B
type ResponseBody = B
The body of the responses the service answers with.
Source§type Error = <S as Service<Request<Body>>>::Error
type Error = <S as Service<Request<Body>>>::Error
What the service fails with when it cannot produce a response.