Module disable

Source
Expand description

Functionality for disabling fs-mistrust checks based on configuration or environment variables.

Enums§

Disable 🔒
Value to configure when permission checks should be disabled. This type is set in the builder, and converted to a bool in the Mistrust.
Status 🔒
Convenience type to indicate whether permission checks are disabled.

Constants§

GLOBAL_DISABLE_VAR
An environment variable which, if set, will cause a us to trust all users (and therefore, in effect, to disable all permissions checks.)

Functions§

from_env_var 🔒
As from_env_value, but takes the name of the variable.
from_env_var_value 🔒
Convert the result of std::env::var to a boolean, if the variable is set.