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

impl<C, B, T> Connect<C, B, T>[src]

pub fn new(inner: C, builder: Builder) -> Connect<C, B, T>[src]

Create a new Connect with some inner connector C and a connection builder.

Trait Implementations

impl<C, B, T> Debug for Connect<C, B, T> where
    C: Debug,
    T: Debug,
    B: Debug
[src]

pub fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>[src]

Formats the value using the given formatter. Read more

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>

Responses given by the service.

type Error = Error

Errors produced 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>>

The future response value.

pub fn poll_ready(
    &mut self,
    cx: &mut Context<'_>
) -> Poll<Result<(), <Connect<C, B, T> as Service<T>>::Error>>
[src]

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more

pub fn call(&mut self, req: T) -> <Connect<C, B, T> as Service<T>>::Future[src]

Process the request and return the response asynchronously. Read more

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

impl<C, B, T> Sync for Connect<C, B, T> where
    C: Sync

impl<C, B, T> Unpin for Connect<C, B, T> where
    C: Unpin

impl<C, B, T> !UnwindSafe for Connect<C, B, T>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T

Notable traits for &'_ mut F

impl<'_, F> Future for &'_ mut F where
    F: Future + Unpin + ?Sized
type Output = <F as Future>::Output;
[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T

Notable traits for &'_ mut F

impl<'_, F> Future for &'_ mut F where
    F: Future + Unpin + ?Sized
type Output = <F as Future>::Output;
[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

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]

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]

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

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]

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]

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

pub fn vzip(self) -> V