pub trait BodyChunk: Sized {
// Required methods
fn split_at(self, idx: usize) -> (Self, Self);
fn as_slice(&self) -> &[u8] ⓘ;
// Provided methods
fn len(&self) -> usize { ... }
fn is_empty(&self) -> bool { ... }
fn into_vec(self) -> Vec<u8> ⓘ { ... }
}Expand description
The operations required from a body stream’s Item type.
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".