Skip to main content

load

Function load 

Source
pub fn load(opts: Options) -> Result<Config, AdapterError>
Expand description

Mount a prefixed slice of the process environment.

An entry that matches the prefix but whose name or value is not valid UTF-8 is an error (spec F1.9b). A bulk mount is the caller asking for a whole namespace, so dropping one key would hand back a subtree that looks complete while the operator’s setting is missing — and a stale config default would then win with no signal anywhere. Entries that do not match the prefix are ignored whether they decode or not, which bounds this to variables the caller named: an unrelated undecodable entry elsewhere in the environment can never fail the mount.