0.2.0 Preview 1 · Frozen documentation
NetworkError
Preserves a portable reason and operation-relative accepted byte prefix. Transferred is neither cumulative stream position nor original packet length. Error values own no socket or borrowed storage and are safe to copy/read.
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.net
import std.net;Public declaration contracts and authored examples. A page can document several related symbols. Implementation bodies are excluded.
NetworkError
pub enum NetworkErrorPreserves a portable reason and operation-relative accepted byte prefix. Transferred is neither cumulative stream position nor original packet length. Error values own no socket or borrowed storage and are safe to copy/read.
NetworkError.Failure
Failure;Reports reason and exact committed progress; failed admission reports zero.
NetworkError.Failure.Reason
Reason: NetworkFailure;NetworkError.Failure.Transferred
Transferred: usize;Documentation snapshot: October 24, 2026 About versions ↗