pub trait BodyDynwhere
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§
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
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".