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

returns the current position of the stream.

tests the end-of-file indicator for the stream

tests the error indicator for the stream

get the last error of the stream

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

returns the file name of the stream

Queries metadata about the underlying file.

Implementors