Struct hyper::client::service::Connect [−][src]
pub struct Connect<C, B, T> { /* fields omitted */ }
This is supported on crate feature
client
and (crate features http1
or http2
) only.Expand description
Creates a connection via SendRequest
.
This accepts a hyper::client::conn::Builder
and provides
a MakeService
implementation to create connections from some
target T
.
Implementations
Trait Implementations
impl<C, B, T> Service<T> for Connect<C, B, T> where
C: MakeConnection<T>,
C::Connection: Unpin + Send + 'static,
C::Future: Send + 'static,
C::Error: Into<Box<dyn StdError + Send + Sync>> + Send,
B: HttpBody + Unpin + Send + 'static,
B::Data: Send + Unpin,
B::Error: Into<Box<dyn StdError + Send + Sync>>,
[src]
impl<C, B, T> Service<T> for Connect<C, B, T> where
C: MakeConnection<T>,
C::Connection: Unpin + Send + 'static,
C::Future: Send + 'static,
C::Error: Into<Box<dyn StdError + Send + Sync>> + Send,
B: HttpBody + Unpin + Send + 'static,
B::Data: Send + Unpin,
B::Error: Into<Box<dyn StdError + Send + Sync>>,
[src]type Response = SendRequest<B>
type Response = SendRequest<B>
Responses given by the service.
type Future = Pin<Box<dyn Future<Output = Result<Self::Response, Self::Error>> + Send + 'static>>
type Future = Pin<Box<dyn Future<Output = Result<Self::Response, Self::Error>> + Send + 'static>>
The future response value.
Auto Trait Implementations
impl<C, B, T> !RefUnwindSafe for Connect<C, B, T>
impl<C, B, T> Send for Connect<C, B, T> where
C: Send,
C: Send,
impl<C, B, T> Sync for Connect<C, B, T> where
C: Sync,
C: Sync,
impl<C, B, T> Unpin for Connect<C, B, T> where
C: Unpin,
C: Unpin,
impl<C, B, T> !UnwindSafe for Connect<C, B, T>
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]