Trait hyper_static_server::BodyDyn[][src]

pub trait BodyDyn: Send + 'static {
    pub fn poll_data(
        self: Pin<&mut Self>,
        _context: &mut Context<'_>
    ) -> Poll<Option<Result<Bytes, Error>>>;
pub fn poll_trailers(
        self: Pin<&mut Self>,
        _context: &mut Context<'_>
    ) -> Poll<Result<Option<HeaderMap<HeaderValue>>, Error>>;
pub fn is_end_stream(&self) -> bool;
pub fn size_hint(&self) -> SizeHint; }

Required methods

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

pub fn poll_trailers(
    self: Pin<&mut Self>,
    _context: &mut Context<'_>
) -> Poll<Result<Option<HeaderMap<HeaderValue>>, Error>>
[src]

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

pub fn size_hint(&self) -> SizeHint[src]

Loading content...

Implementors

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

Loading content...