pub trait Body {
type Error;
// Required method
fn poll_next(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
) -> Poll<Option<Result<Bytes, Self::Error>>>;
// Provided method
fn size_hint(&self) -> SizeHint { ... }
}
Expand description
请求或响应的正文特征。