pub trait AsyncReadProgressExt {
// Provided method
fn report_progress<F>(
self,
at_most_ever: Duration,
callback: F,
) -> LogStreamProgress<Self, F>
where Self: Sized,
F: FnMut(usize) { ... }
}
Expand description
An extension trait which adds the report_progress
method to
AsyncRead
types.
Note: This is for futures_io::AsyncRead
.