[][src]Trait read_write_at::ReadAtMut

pub trait ReadAtMut {
    fn read_at(&mut self, buf: &mut [u8], offset: u64) -> Result<usize>;

    fn read_exact_at(&mut self, buf: &mut [u8], offset: u64) -> Result<()> { ... }
}

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.

Loading content...

Provided methods

fn read_exact_at(&mut self, buf: &mut [u8], offset: u64) -> Result<()>

Similar to read_at, but without short reads.

Loading content...

Implementors

impl<T: ReadAt + ?Sized> ReadAtMut for T[src]

impl<T: Read + Seek> ReadAtMut for ReadWriteSeek<T>[src]

impl<T: ?Sized, U> ReadAtMut for DerefWrapper<U> where
    T: ReadAtMut,
    U: DerefMut<Target = T>, 
[src]

Loading content...