pub struct Ace {
pub trustee: Sid,
pub ace_type: AceType,
pub access_mask: AccessMask,
pub inheritance: InheritanceFlags,
pub inherited: bool,
}Expand description
Access control entry.
Fields§
§trustee: SidTrustee SID.
ace_type: AceTypeAllow or deny.
access_mask: AccessMaskRights for this ACE.
inheritance: InheritanceFlagsInheritance behavior.
inherited: boolTrue when inherited from parent.
Implementations§
Source§impl Ace
impl Ace
Sourcepub fn new(trustee: Sid, ace_type: AceType, access_mask: AccessMask) -> Self
pub fn new(trustee: Sid, ace_type: AceType, access_mask: AccessMask) -> Self
Create a new ACE.
Sourcepub fn with_inheritance(self, inheritance: InheritanceFlags) -> Self
pub fn with_inheritance(self, inheritance: InheritanceFlags) -> Self
Set inheritance flags.
Trait Implementations§
impl Eq for Ace
impl StructuralPartialEq for Ace
Auto Trait Implementations§
impl Freeze for Ace
impl RefUnwindSafe for Ace
impl Send for Ace
impl Sync for Ace
impl Unpin for Ace
impl UnsafeUnpin for Ace
impl UnwindSafe for Ace
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