Expand description
Ready-made Capturable types for ambient process and environment state.
Each type snapshots a piece of context — the working directory, home directory, command-line
arguments, or a named environment variable — into an error through a #[oopsie(capture)]
field. Capturing never fails: an unavailable directory or variable is recorded as None.
Requires the extras feature.
Modules§
- env_
vars - Ready-made
EnvVarOptaliases for common variables, plus themake_env_var!macro for declaring your own.
Structs§
- Current
DirOpt - The current working directory at the time the error was built, or
Noneif it could not be read. - EnvArgs
- The process’s command-line arguments at the time the error was built.
- EnvVar
Opt - The value of the environment variable named by
Eat the time the error was built, orNoneif it was unset. - Home
DirOpt - The user’s home directory at the time the error was built, or
Noneif it could not be determined.
Traits§
- EnvVar
Name - Names the environment variable that an
EnvVarOptreads.