[−][src]Struct tower_hyper::util::Connector
A bridge between hyper::client::connect::Connect
types
and tower_util::MakeConnection
.
Example
let connector = Connector::new(HttpConnector::new(1)); let mut hyper = Connect::new(connector);
Methods
impl<C> Connector<C> where
C: Connect,
[src]
C: Connect,
Trait Implementations
impl<C: Debug> Debug for Connector<C>
[src]
impl<C> Service<Destination> for Connector<C> where
C: Connect,
[src]
C: Connect,
type Response = C::Transport
Responses given by the service.
type Error = C::Error
Errors produced by the service.
type Future = ConnectorFuture<C>
The future response value.
fn poll_ready(&mut self) -> Poll<(), Self::Error>
[src]
fn call(&mut self, target: Destination) -> Self::Future
[src]
Auto Trait Implementations
impl<C> Sync for Connector<C> where
C: Sync,
C: Sync,
impl<C> Unpin for Connector<C> where
C: Unpin,
C: Unpin,
impl<C> Send for Connector<C> where
C: Send,
C: Send,
impl<C> UnwindSafe for Connector<C> where
C: UnwindSafe,
C: UnwindSafe,
impl<C> RefUnwindSafe for Connector<C> where
C: RefUnwindSafe,
C: RefUnwindSafe,
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Erased for T
impl<C, Target> HttpMakeConnection<Target> for C where
C: Service<Target>,
<C as Service<Target>>::Response: HttpConnection,
<C as Service<Target>>::Response: AsyncRead,
<C as Service<Target>>::Response: AsyncWrite,
[src]
C: Service<Target>,
<C as Service<Target>>::Response: HttpConnection,
<C as Service<Target>>::Response: AsyncRead,
<C as Service<Target>>::Response: AsyncWrite,
type Connection = <C as Service<Target>>::Response
The transport provided by this service that is HTTP aware.
type Error = <C as Service<Target>>::Error
Errors produced by the connecting service
type Future = <C as Service<Target>>::Future
The future that eventually produces the transport
fn poll_ready(
&mut self
) -> Result<Async<()>, <C as HttpMakeConnection<Target>>::Error>
[src]
&mut self
) -> Result<Async<()>, <C as HttpMakeConnection<Target>>::Error>
fn make_connection(
&mut self,
target: Target
) -> <C as HttpMakeConnection<Target>>::Future
[src]
&mut self,
target: Target
) -> <C as HttpMakeConnection<Target>>::Future
impl<M, S, Target, Request> MakeService<Target, Request> for M where
M: Service<Target, Response = S>,
S: Service<Request>,
[src]
M: Service<Target, Response = S>,
S: Service<Request>,
type Response = <S as Service<Request>>::Response
Responses given by the service
type Error = <S as Service<Request>>::Error
Errors produced by the service
type Service = S
The Service
value created by this factory
type MakeError = <M as Service<Target>>::Error
Errors produced while building a service.
type Future = <M as Service<Target>>::Future
The future of the Service
instance.
fn poll_ready(
&mut self
) -> Result<Async<()>, <M as MakeService<Target, Request>>::MakeError>
[src]
&mut self
) -> Result<Async<()>, <M as MakeService<Target, Request>>::MakeError>
fn make_service(
&mut self,
target: Target
) -> <M as MakeService<Target, Request>>::Future
[src]
&mut self,
target: Target
) -> <M as MakeService<Target, Request>>::Future