Under heavy development. This site describes the intended 1.0 language. Current features and performance vary. Development status
Sn50SnThe SnAPI programming language
0.2.0 Preview 1 · Frozen documentation

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.

Sn is under heavy development. Reference extracted from this release’s bundled standard library. Public API examples are not an exhaustive compatibility test. Read the matching release guide for tested workflows and limitations. Read the status →

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.

Documentation snapshot: October 24, 2026 About versions ↗
Searching Development · language & standard library