Struct salvo::hyper::client::service::Connect [−]
pub struct Connect<C, B, T> { /* fields omitted */ }
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
impl<C, B, T> Connect<C, B, T>
impl<C, B, T> Connect<C, B, T>
Trait Implementations
impl<C, B, T> Service<T> for Connect<C, B, T> where
C: MakeConnection<T>,
B: 'static + Body + Unpin + Send,
<C as MakeConnection<T>>::Connection: 'static,
<C as MakeConnection<T>>::Connection: Unpin,
<C as MakeConnection<T>>::Connection: Send,
<C as MakeConnection<T>>::Future: 'static,
<C as MakeConnection<T>>::Future: Send,
<C as MakeConnection<T>>::Error: Into<Box<dyn Error + Send + Sync + 'static, 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 + Send + Sync + 'static, Global>>,
impl<C, B, T> Service<T> for Connect<C, B, T> where
C: MakeConnection<T>,
B: 'static + Body + Unpin + Send,
<C as MakeConnection<T>>::Connection: 'static,
<C as MakeConnection<T>>::Connection: Unpin,
<C as MakeConnection<T>>::Connection: Send,
<C as MakeConnection<T>>::Future: 'static,
<C as MakeConnection<T>>::Future: Send,
<C as MakeConnection<T>>::Error: Into<Box<dyn Error + Send + Sync + 'static, 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 + Send + Sync + 'static, Global>>,
type Response = SendRequest<B>
type Response = SendRequest<B>
Responses given by the service.
The future response value.
Returns Poll::Ready(Ok(()))
when the service is able to process requests. Read more
Auto Trait Implementations
impl<C, B, T> !RefUnwindSafe for Connect<C, B, T>
impl<C, B, T> !UnwindSafe for Connect<C, B, T>
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more