Struct ketos::io::File
[−]
[src]
pub struct File { /* fields omitted */ }
Wraps a fs::File
as a shared writer, providing a path for error values.
Methods
impl File
[src]
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.