Trait std::rt::rtio::RtioFileStream[src]

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

Required Methods

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

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

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

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

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

fn tell(&self) -> Result<u64, IoError>

fn fsync(&mut self) -> Result<(), IoError>

fn datasync(&mut self) -> Result<(), IoError>

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

fn fstat(&mut self) -> Result<FileStat, IoError>

Implementors