Trait BodyDyn

Source
pub trait BodyDyn
where Self: Send + 'static,
{ // Required methods fn poll_data( self: Pin<&mut Self>, _context: &mut Context<'_>, ) -> Poll<Option<ServerResult<Bytes>>>; fn poll_trailers( self: Pin<&mut Self>, _context: &mut Context<'_>, ) -> Poll<ServerResult<Option<Headers>>>; fn is_end_stream(&self) -> bool; fn size_hint(&self) -> BodySizeHint; }

Required Methods§

Source

fn poll_data( self: Pin<&mut Self>, _context: &mut Context<'_>, ) -> Poll<Option<ServerResult<Bytes>>>

Source

fn poll_trailers( self: Pin<&mut Self>, _context: &mut Context<'_>, ) -> Poll<ServerResult<Option<Headers>>>

Source

fn is_end_stream(&self) -> bool

Source

fn size_hint(&self) -> BodySizeHint

Implementors§

Source§

impl<B> BodyDyn for B
where B: BodyTrait<Data = Bytes> + Send + 'static, B::Error: Error + Send + Sync + 'static,