Type Alias hyper::client::conn::Http2ClientTask

source ·
type Http2ClientTask<B> = ClientTask<B>;

Aliased Type§

struct Http2ClientTask<B> {
    ping: Recorder,
    conn_drop_ref: Sender<Infallible>,
    conn_eof: Receiver<Infallible>,
    executor: Exec,
    h2_tx: SendRequest<SendBuf<<B as Body>::Data>>,
    req_rx: Receiver<Request<B>, Response<Body>>,
    fut_ctx: Option<FutCtx<B>>,
}

Fields§

§ping: Recorder§conn_drop_ref: Sender<Infallible>§conn_eof: Receiver<Infallible>§executor: Exec§h2_tx: SendRequest<SendBuf<<B as Body>::Data>>§req_rx: Receiver<Request<B>, Response<Body>>§fut_ctx: Option<FutCtx<B>>

Implementations§

source§

impl<B> ClientTask<B>where B: HttpBody + 'static,

source§

impl<B> ClientTask<B>where B: HttpBody + Send + 'static, B::Data: Send, B::Error: Into<Box<dyn StdError + Send + Sync>>,

source

fn poll_pipe(&mut self, f: FutCtx<B>, cx: &mut Context<'_>)

Trait Implementations§

source§

impl<B> Future for ClientTask<B>where B: HttpBody + Send + 'static, B::Data: Send, B::Error: Into<Box<dyn StdError + Send + Sync>>,

§

type Output = Result<Dispatched, Error>

The type of value produced on completion.
source§

fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output>

Attempt to resolve the future to a final value, registering the current task for wakeup if the value is not yet available. Read more