pub trait Tracker:
Send
+ Sync
+ 'static {
type Error;
// Provided method
fn on_data(&self, size: usize) -> Result<(), Self::Error> { ... }
}
Expand description
A trait for tracking the size of the data that is read from an HTTP body.
Required Associated Types§
Sourcetype Error
type Error
The error type that can occur when Tracker::on_data
is called.