Trait hyper_simple_server::BodyDyn[][src]

pub trait BodyDyn where
    Self: Send + 'static, 
{ 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

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

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

fn is_end_stream(&self) -> bool[src]

fn size_hint(&self) -> BodySizeHint[src]

Loading content...

Implementors

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

Loading content...