pub trait SizeAwareRangeReader: RangeReader {
// Required method
fn with_file_size_hint(&mut self, file_size_hint: u64);
}
Expand description
SizeAwareRangeReader
is a RangeReader
that supports setting a file size hint.
Required Methods§
sourcefn with_file_size_hint(&mut self, file_size_hint: u64)
fn with_file_size_hint(&mut self, file_size_hint: u64)
Sets the file size hint for the reader.
It’s used to optimize the reading process by reducing the number of remote requests.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.