Trait Tracker

Source
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§

Provided Methods§

Source

fn on_data(&self, size: usize) -> Result<(), Self::Error>

Called when data is read from the body.

The size parameter is the size of the data that is remaining to be read from the body.

Implementors§