pub trait SyncReadAt {
// 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".
Implementations on Foreign Types§
Source§impl SyncReadAt for Bytes
impl SyncReadAt for Bytes
Source§impl SyncReadAt for File
Available on Unix only.
impl SyncReadAt for File
Available on Unix only.