Struct choices::warp::hyper::client::service::Connect [−][src]
pub struct Connect<C, B, T> { /* fields omitted */ }
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>,
B: Body + Unpin + Send + 'static,
<C as MakeConnection<T>>::Connection: Unpin,
<C as MakeConnection<T>>::Connection: Send,
<C as MakeConnection<T>>::Connection: 'static,
<C as MakeConnection<T>>::Future: Send,
<C as MakeConnection<T>>::Future: 'static,
<C as MakeConnection<T>>::Error: Into<Box<dyn Error + 'static + Sync + Send, Global>>,
<C as MakeConnection<T>>::Error: Send,
<B as Body>::Data: Send,
<B as Body>::Data: Unpin,
<B as Body>::Error: Into<Box<dyn Error + 'static + Sync + Send, Global>>,
[src]
impl<C, B, T> Service<T> for Connect<C, B, T> where
C: MakeConnection<T>,
B: Body + Unpin + Send + 'static,
<C as MakeConnection<T>>::Connection: Unpin,
<C as MakeConnection<T>>::Connection: Send,
<C as MakeConnection<T>>::Connection: 'static,
<C as MakeConnection<T>>::Future: Send,
<C as MakeConnection<T>>::Future: 'static,
<C as MakeConnection<T>>::Error: Into<Box<dyn Error + 'static + Sync + Send, Global>>,
<C as MakeConnection<T>>::Error: Send,
<B as Body>::Data: Send,
<B as Body>::Data: Unpin,
<B as Body>::Error: Into<Box<dyn Error + 'static + Sync + Send, Global>>,
[src]type Response = SendRequest<B>
type Response = SendRequest<B>
Responses given by the service.
type Future = Pin<Box<dyn Future<Output = Result<<Connect<C, B, T> as Service<T>>::Response, <Connect<C, B, T> as Service<T>>::Error>> + 'static + Send, Global>>
type Future = Pin<Box<dyn Future<Output = Result<<Connect<C, B, T> as Service<T>>::Response, <Connect<C, B, T> as Service<T>>::Error>> + 'static + Send, Global>>
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> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
[src]
fn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
[src]
fn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
[src]impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
[src]
fn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
[src]
fn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
[src]impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,