Struct

std::io::Output!

source
struct Output! { ... }

Buffered writer to standard output, standard error or a file. Call finish to flush it and close the file.

Methods

method flushsource

fn flush(self) -> Output! { ... }

Writes what has gathered so far.

method finishsource

fn finish(self) -> Result[(), Error] { ... }

Writes what is left, closes the file of one over a file, and reports the first failure, if any: a failed write before a failed close.

method gatheredsource

fn gathered(self) -> Output! { ... }

Writes what has gathered once it reaches 4 KiB.

Instances

instance Writer[Output!]source

instance Writer[Output!] { ... }

In std::io.

Output as a writer: bytes gather and are written 4 KiB at a time.