BufferedStreamCreationError
Preserves source ownership when a buffered adapter cannot be created. Caller owns Source and may retry with a different capacity. No stream operation occurs during construction. This record adds no synchronization.
Module std.io
import std.io;Public declaration contracts and authored examples. A page can document several related symbols. Implementation bodies are excluded.
BufferedStreamCreationError
pub final class BufferedStreamCreationError<S>Preserves source ownership when a buffered adapter cannot be created. Caller owns Source and may retry with a different capacity. No stream operation occurs during construction. This record adds no synchronization. S: Owned concrete stream type.
BufferedStreamCreationError.Reason
pub Reason: IoError;Portable capacity/storage failure; zero bytes transferred.
BufferedStreamCreationError.Source
pub Source: S;Original unconsumed source available for explicit retry.
BufferedStreamCreationError.init
pub init(Reason: IoError, mut Source: S)Transfers the source into a recoverable creation failure. Reason: Portable creation failure. Source: Unconsumed stream.