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§
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
Implementors§
Source§impl<B> Dispatch for Client<B>where
B: Body,
Available on crate feature client only.
impl<B> Dispatch for Client<B>where
B: Body,
Available on crate feature
client only.