pub struct HttpConnection<B> { /* private fields */ }Available on crate feature
client only.Expand description
An HTTP connection.
Trait Implementations§
source§impl<B> Connection<B> for HttpConnection<B>
impl<B> Connection<B> for HttpConnection<B>
source§type Future = Pin<Box<dyn Future<Output = Result<Response<Incoming>, Error>> + Send>>
type Future = Pin<Box<dyn Future<Output = Result<Response<Incoming>, Error>> + Send>>
The future type returned by this service
source§fn send_request(&mut self, request: Request<B>) -> Self::Future
fn send_request(&mut self, request: Request<B>) -> Self::Future
Send a request to the remote server and return the response.
source§impl<B> Debug for HttpConnection<B>
impl<B> Debug for HttpConnection<B>
source§impl<B> PoolableConnection for HttpConnection<B>where
B: Send + 'static,
impl<B> PoolableConnection for HttpConnection<B>where
B: Send + 'static,
Auto Trait Implementations§
impl<B> Freeze for HttpConnection<B>
impl<B> !RefUnwindSafe for HttpConnection<B>
impl<B> Send for HttpConnection<B>where
B: Send,
impl<B> Sync for HttpConnection<B>where
B: Send,
impl<B> Unpin for HttpConnection<B>
impl<B> !UnwindSafe for HttpConnection<B>
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