[][src]Trait ketos::io::SharedWrite

pub trait SharedWrite {
    fn write_all(&self, buf: &[u8]) -> Result<(), IoError>;
fn write_fmt(&self, fmt: Arguments) -> Result<(), IoError>;
fn flush(&self) -> Result<(), IoError>; }

A writer object that can operate using shared references.

Required methods

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

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

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

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

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

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

Loading content...

Implementations on Foreign Types

impl SharedWrite for Stdout[src]

impl SharedWrite for Stderr[src]

Loading content...

Implementors

impl SharedWrite for File[src]

impl SharedWrite for Sink[src]

Loading content...