Trait rustrt::rtio::RtioFileStream[src]

pub trait RtioFileStream {
    fn read(&mut self, buf: &mut [u8]) -> IoResult<int>;
    fn write(&mut self, buf: &[u8]) -> IoResult<()>;
    fn pread(&mut self, buf: &mut [u8], offset: u64) -> IoResult<int>;
    fn pwrite(&mut self, buf: &[u8], offset: u64) -> IoResult<()>;
    fn seek(&mut self, pos: i64, whence: SeekStyle) -> IoResult<u64>;
    fn tell(&self) -> IoResult<u64>;
    fn fsync(&mut self) -> IoResult<()>;
    fn datasync(&mut self) -> IoResult<()>;
    fn truncate(&mut self, offset: i64) -> IoResult<()>;
    fn fstat(&mut self) -> IoResult<FileStat>;
}

Required Methods

fn read(&mut self, buf: &mut [u8]) -> IoResult<int>

fn write(&mut self, buf: &[u8]) -> IoResult<()>

fn pread(&mut self, buf: &mut [u8], offset: u64) -> IoResult<int>

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

fn seek(&mut self, pos: i64, whence: SeekStyle) -> IoResult<u64>

fn tell(&self) -> IoResult<u64>

fn fsync(&mut self) -> IoResult<()>

fn datasync(&mut self) -> IoResult<()>

fn truncate(&mut self, offset: i64) -> IoResult<()>

fn fstat(&mut self) -> IoResult<FileStat>

Implementors