pub trait Body: Sealed {
type Data: Buf;
type Error: Into<Box<dyn Error + Send + Sync>>;
// Required methods
fn is_end_stream(&self) -> bool;
fn poll_data(&mut self) -> Poll<Option<Self::Data>, Self::Error>;
fn poll_trailers(&mut self) -> Poll<Option<HeaderMap>, Self::Error>;
}Expand description
A “trait alias” for tower_http_service::Body with bounds required by
tower-grpc.
Not to be implemented directly, but instead useful for reducing bounds boilerplate.