Development · Evolving reference
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. This reference includes the intended 1.0 design; features may be incomplete in the current compiler. 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 ↗