Module sgx_tstd::env[][src]

Inspection and manipulation of the process's environment.

Modules

consts

Constants associated with the current target

Structs

JoinPathsError

The error type for operations on the PATH variable. Possibly returned from the [env::join_paths] function.

SplitPaths

An iterator that splits an environment variable into paths according to platform-specific conventions.

Vars

An iterator over a snapshot of the environment variables of this process.

VarsOs

An iterator over a snapshot of the environment variables of this process.

Enums

VarError

The error type for operations interacting with environment variables. Possibly returned from the [env::var] function.

Functions

join_paths

Joins a collection of Paths appropriately for the PATH environment variable.

remove_var

Removes an environment variable from the environment of the currently running process.

set_var

Sets the environment variable k to the value v for the currently running process.

split_paths

Parses input according to platform conventions for the PATH environment variable.

var

Fetches the environment variable key from the current process.

var_os

Fetches the environment variable key from the current process, returning None if the variable isn't set.

vars

Returns an iterator of (variable, value) pairs of strings, for all the environment variables of the current process.

vars_os

Returns an iterator of (variable, value) pairs of OS strings, for all the environment variables of the current process.