[−][src]Trait read_write_at::ReadAtMut
Similar to ReadAt
, but functions may allow to change object state,
including cursor moves if the object has concept of a cursor
Note that ReadAtMut
implementations from RefCell
and Mutex
do not check for cursor moves.
Required methods
fn read_at(&mut self, buf: &mut [u8], offset: u64) -> Result<usize>
Similar to ReadAt::read_at
, but it is allowed to change object internal state.
Provided methods
fn read_exact_at(&mut self, buf: &mut [u8], offset: u64) -> Result<()>
Similar to read_at
, but without short reads.
Implementors
impl<T: ReadAt + ?Sized> ReadAtMut for T
[src]
fn read_at(&mut self, buf: &mut [u8], offset: u64) -> Result<usize>
[src]
fn read_exact_at(&mut self, buf: &mut [u8], offset: u64) -> Result<()>
[src]
impl<T: Read + Seek> ReadAtMut for ReadWriteSeek<T>
[src]
fn read_at(&mut self, buf: &mut [u8], offset: u64) -> Result<usize>
[src]
fn read_exact_at(&mut self, buf: &mut [u8], offset: u64) -> Result<()>
[src]
impl<T: ?Sized, U> ReadAtMut for DerefWrapper<U> where
T: ReadAtMut,
U: DerefMut<Target = T>,
[src]
T: ReadAtMut,
U: DerefMut<Target = T>,