pub trait ReadAtSync: Send + Sync {
// Required method
fn read_at(&self, buf: &mut [u8], offset: u64) -> Result<()>;
// Provided method
fn offset(&self, offset: u64) -> ReadAtOffset<'_, Self>
where Self: Sized { ... }
}
Expand description
Required Methods§
Provided Methods§
sourcefn offset(&self, offset: u64) -> ReadAtOffset<'_, Self>where
Self: Sized,
fn offset(&self, offset: u64) -> ReadAtOffset<'_, Self>where
Self: Sized,
Get implementation of ReadAtSync
that add specified offset to all attempted reads