Stderr
public struct Stderr { /* private fields */ }Writable over the process's standard error (file descriptor 2).
Mirrors Stdout but writes to STDERR_FILENO. Conventionally used
for diagnostics, log lines, and anything that should not be captured
by a downstream pipe consuming stdout.
Representation
Zero-sized.
Initializers
public init()
public init()Builds a stderr handle.
ImplementsWritable
Methods
public mutating func flush() -> Result[(), IoError]
public mutating func flush() -> Result[(), IoError]No-op; stderr is unbuffered at this layer.
public mutating func write(from: ArraySlice[UInt8]) -> Result[Int64, IoError]
public mutating func write(from: ArraySlice[UInt8]) -> Result[Int64, IoError]Calls write(2) on STDERR_FILENO.
Defined in lang/std/io/stdio.ks