pub(crate) enum Disable {
OnUserEnvVar(String),
OnGlobalEnvVar,
Never,
}
Expand description
Value to configure when permission checks should be disabled. This type is
set in the builder, and converted to a bool in the Mistrust
.
Variants§
OnUserEnvVar(String)
Check a caller-provided environment variable, and honor it if it is set.
If it is not set, fall back to checking
$FS_MISTRUST_DISABLE_PERMISSIONS_CHECKS
.
OnGlobalEnvVar
Disable permissions checks if the value of
$FS_MISTRUST_DISABLE_PERMISSIONS_CHECKS
is something other than “false”,
“0”, “no”, etc..
This is the default.
Never
Perform permissions checks regardless of any values in the environment.
Implementations§
Trait Implementations§
impl Eq for Disable
impl StructuralPartialEq for Disable
Auto Trait Implementations§
impl Freeze for Disable
impl RefUnwindSafe for Disable
impl Send for Disable
impl Sync for Disable
impl Unpin for Disable
impl UnwindSafe for Disable
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more