Struct ketos::io::File [] [src]

pub struct File {
    // some fields omitted
}

Wraps a fs::File as a shared writer, providing a path for error values.

Methods

impl File
[src]

fn new(file: File, path: PathBuf) -> File

Creates a new File from an open filehandle and path.

Trait Implementations

impl SharedWrite for File
[src]

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

Analogous to std::io::Write::write_all; writes all bytes or returns an error. Read more

fn write_fmt(&self, fmt: Arguments) -> Result<()IoError>

Analogous to std::io::Write::write_all; writes formatted arguments or returns an error. Read more

fn flush(&self) -> Result<()IoError>

Analogous to std::io::Write::flush; flushes the output stream.