0.2.0 Preview 1 · Frozen documentation
EnvironmentSetErrorReason
Identifies portable validation/storage failures of explicit environment edits. No host environment mutation occurs; the owning error retains the rejected entry.
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.process
import std.process;Public declaration contracts and authored examples. A page can document several related symbols. Implementation bodies are excluded.
EnvironmentSetErrorReason
pub enum EnvironmentSetErrorReasonIdentifies portable validation/storage failures of explicit environment edits. No host environment mutation occurs; the owning error retains the rejected entry.
EnvironmentSetErrorReason.InvalidName
InvalidName;Empty name or an equals unit cannot be a public environment key.
EnvironmentSetErrorReason.MixedRepresentation
MixedRepresentation;Name/value or existing entries use different native unit kinds.
EnvironmentSetErrorReason.Storage
Storage;Insertion could not acquire vector storage; existing entries unchanged.
EnvironmentSetErrorReason.Storage.Reason
Reason: AllocationError;EnvironmentSetErrorReason.Windows
Windows;Explicit Windows startup insertion could not apply native name policy.
EnvironmentSetErrorReason.Windows.Reason
Reason: WindowsEnvironmentError;Documentation snapshot: October 24, 2026 About versions ↗