StandardError structv0.1.0

Source
Standard error: the same contract as standard output, on the stream reports belong to.
pub struct StandardError {
    // private fields
}

Associated functions

Acquire

pub func Acquire() -> StandardError

The process's standard error.

Returns: the stream, which the process owns for its whole life

Source

Implements Writer

StandardError conforms to Writer.

Write

pub func Write(
    self: &var StandardError,
    bytes: char8[..]
) -> uint ! IoError

Writes what it can of bytes to standard error.

NameTypeDescription
byteschar8[..]the bytes to write

Returns: how many bytes were taken

Source

Flush

pub func Flush(self: &var StandardError) -> ! IoError

Nothing: these writes hold nothing back.

Returns: success, since everything written already reached the system

Source