Skip to main content

Module disable

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.