Trait cfile::Stream [] [src]

pub trait Stream: Read + Write + Seek {
    fn position(&self) -> Result<u64>;
    fn eof(&self) -> bool;
    fn errno(&self) -> i32;
    fn last_error(&self) -> Option<Error>;
    fn clear_error(&self);
    fn file_name(&self) -> Result<PathBuf>;
    fn metadata(&self) -> Result<Metadata>;
}
[]

C *FILE stream

Required Methods

fn position(&self) -> Result<u64>[]

returns the current position of the stream.

fn eof(&self) -> bool[]

tests the end-of-file indicator for the stream

fn errno(&self) -> i32[]

tests the error indicator for the stream

fn last_error(&self) -> Option<Error>[]

get the last error of the stream

fn clear_error(&self)[]

clears the end-of-file and error indicators for the stream

fn file_name(&self) -> Result<PathBuf>[]

returns the file name of the stream

fn metadata(&self) -> Result<Metadata>[]

Queries metadata about the underlying file.

Implementors