Trait hyper::proto::h1::dispatch::Dispatch

source ·
pub(crate) trait Dispatch {
    type PollItem;
    type PollBody;
    type PollError;
    type RecvItem;

    // Required methods
    fn poll_msg(
        self: Pin<&mut Self>,
        cx: &mut Context<'_>,
    ) -> Poll<Option<Result<(Self::PollItem, Self::PollBody), Self::PollError>>>;
    fn recv_msg(&mut self, msg: Result<(Self::RecvItem, Body)>) -> Result<()>;
    fn poll_ready(&mut self, cx: &mut Context<'_>) -> Poll<Result<(), ()>>;
    fn should_poll(&self) -> bool;
}

Required Associated Types§

Required Methods§

source

fn poll_msg( self: Pin<&mut Self>, cx: &mut Context<'_>, ) -> Poll<Option<Result<(Self::PollItem, Self::PollBody), Self::PollError>>>

source

fn recv_msg(&mut self, msg: Result<(Self::RecvItem, Body)>) -> Result<()>

source

fn poll_ready(&mut self, cx: &mut Context<'_>) -> Poll<Result<(), ()>>

source

fn should_poll(&self) -> bool

Implementors§