pub enum WinDacl {
Empty,
Default,
CustomUserPerm(WinDaclProcessAccess),
False,
CustomFn(fn() -> Result),
}Expand description
Custom windows DACL configuration.
Variants§
Empty
The empty DACL. This means giving no access to any user at all. This is extremely strict. Use with caution.
Default
The default DACL.
CustomUserPerm(WinDaclProcessAccess)
A DACL which gives precisely the accesses specified in the first tuple position to the current user, and no access to any other user.
False
Don’t set a DACL at all.
CustomFn(fn() -> Result)
Instead of setting a DACL, call the function in the first tuple
position. This callback function can then be used to set a custom DACL
yourself, using the API in crate::win_acl.
Implementations§
source§impl WinDacl
impl WinDacl
sourcepub fn call(&self) -> Result
pub fn call(&self) -> Result
Set the DACL configured in self. Most users probably want to set this
DACL configuration in a Config using Config::set_win_dacl, and
then harden the process using that configuration
(Config::harden_process) instead.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WinDacl
impl RefUnwindSafe for WinDacl
impl Send for WinDacl
impl Sync for WinDacl
impl Unpin for WinDacl
impl UnwindSafe for WinDacl
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