pub trait SeekRead {
// Required method
fn seek_read(&mut self, out: &mut [u8], offset: u64) -> Result<usize, Error>;
// Provided method
fn seek_read_all(
&mut self,
out: &mut [u8],
offset: u64,
) -> Result<(), Error> { ... }
}
Expand description
Trait to permit an atomic Seek+Read operation