[][src]Trait read_write_at::WriteAt

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

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

Write counterpart of ReadAt.

Required methods

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

Writes data contained in buffer buf at offset offset. May actually write less bytes than you request. Obviously, it is expected to change information referenced by this object despite of accepting &self, but properties of the writer itself (such as current position, if one exist) should not be changed.

Loading content...

Provided methods

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

Similar to write_at, but without short writes.

Loading content...

Implementations on Foreign Types

impl WriteAt for File[src]

impl<T: ?Sized> WriteAt for RefCell<T> where
    T: WriteAtMut
[src]

impl<T: ?Sized> WriteAt for Mutex<T> where
    T: WriteAtMut
[src]

Loading content...

Implementors

Loading content...