Struct hyper::client::service::Connect [−][src]
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
impl<C, B, T> Connect<C, B, T>
[src][−]
pub fn new(inner: C, builder: Builder) -> Self
[src][−]
Create a new Connect
with some inner connector C
and a connection
builder.
Trait Implementations
impl<C: Debug, B: Debug, T: Debug> Debug for Connect<C, B, T>
[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][+]
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>>,
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> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T> Instrument for T
[src][+]
impl<T> Instrument for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> Pointable for T
[src][+]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,