pub trait ReadAt {
// Required methods
fn read_at(&self, offset: u64, buf: &mut [u8]) -> Result<usize>;
fn len(&self) -> u64;
// Provided method
fn is_empty(&self) -> bool { ... }
}Expand description
Sync data source supporting offset-based reads.
Enables parallel splitting by allowing concurrent reads at different offsets.
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".