pub(crate) trait RandomAccessDataSource {
type Error;
// Required method
async fn read_range(
&self,
range: Range<usize>,
) -> Result<Vec<u8>, Self::Error>;
}Expand description
A data source that supports random-access reads
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".