Struct redox::fs::File [] [src]

pub struct File {
    // some fields omitted
}

A Unix-style file

Methods

impl File

fn exec(path: &str) -> bool

fn open(path: &str) -> Option<File>

Open a new file using a path

fn create(path: &str) -> Option<File>

Create a new file using a path

fn dup(&self) -> Option<File>

Duplicate the file

fn path(&self) -> Option<String>

Get the canonical path of the file

fn sync(&mut self) -> bool

Flush the io

fn set_len(&mut self, size: usize) -> bool

Trait Implementations

impl Read for File

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

fn read_to_end(&mut self, vec: &mut Vec<u8>) -> Option<usize>

fn read_to_string(&mut self, string: &mut String) -> Option<usize>

fn bytes(&mut self) -> IntoIter<u8>

impl Write for File

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

fn write_fmt(&mut self, args: Arguments) -> Result<(), Error>

impl Seek for File

fn seek(&mut self, pos: SeekFrom) -> Option<usize>

impl Drop for File

fn drop(&mut self)