Struct ketos::io::Sink
[−]
[src]
pub struct Sink;
A shared writer which sends all data into the void.
Trait Implementations
impl SharedWrite for Sink
[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.