hyper::proto::h1::dispatch

Trait 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, IncomingBody)>,
    ) -> 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, IncomingBody)>, ) -> Result<()>

Source

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

Source

fn should_poll(&self) -> bool

Implementors§