pub trait RequestBody {
// Required method
async fn write<W: Write>(&self, writer: &mut W) -> Result<(), W::Error>;
// Provided method
fn len(&self) -> Option<usize> { ... }
}Expand description
The request body
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.