pub trait ChunkLength {
// Required method
fn chunk_len(&self) -> usize;
}Expand description
Reports the byte length of a stream chunk.
Implement this trait for custom chunk types that should be accepted by
crate::TransferLimit without first converting them to Bytes.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".