Trait hermit::fs::PosixFile[][src]

pub trait PosixFile {
    fn close(&mut self) -> Result<(), FileError>;
fn read(&mut self, len: u32) -> Result<Vec<u8>, FileError>;
fn write(&mut self, buf: &[u8]) -> Result<u64, FileError>;
fn lseek(
        &mut self,
        offset: isize,
        whence: SeekWhence
    ) -> Result<usize, FileError>; }

Required methods

fn close(&mut self) -> Result<(), FileError>[src]

fn read(&mut self, len: u32) -> Result<Vec<u8>, FileError>[src]

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

fn lseek(
    &mut self,
    offset: isize,
    whence: SeekWhence
) -> Result<usize, FileError>
[src]

Loading content...

Implementors

Loading content...