pub struct SecDescUpdate { /* private fields */ }Expand description
A builder for a functional update to a SecDesc.
Component and control-flag methods select the values to replace.
Internally, control changes are stored as compact set/clear bitmasks;
SecDesc::with rejects changes that do not apply to loaded components.
Implementations§
Source§impl SecDescUpdate
impl SecDescUpdate
Sourcepub fn group(self, group: Option<Sid>) -> Self
pub fn group(self, group: Option<Sid>) -> Self
Replaces the primary group, or clears it with None.
Sourcepub fn dacl(self, dacl: Option<AclBuf>) -> Self
pub fn dacl(self, dacl: Option<AclBuf>) -> Self
Replaces the DACL, or supplies a null DACL with None.
Sourcepub fn sacl(self, sacl: Option<AclBuf>) -> Self
pub fn sacl(self, sacl: Option<AclBuf>) -> Self
Replaces the SACL, or supplies a null SACL with None.
Sourcepub fn owner_defaulted(self, value: bool) -> Self
pub fn owner_defaulted(self, value: bool) -> Self
Sets the owner-defaulted control flag.
Sourcepub fn group_defaulted(self, value: bool) -> Self
pub fn group_defaulted(self, value: bool) -> Self
Sets the group-defaulted control flag.
Sourcepub fn dacl_present(self, value: bool) -> Self
pub fn dacl_present(self, value: bool) -> Self
Sets whether a DACL is present.
Sourcepub fn dacl_defaulted(self, value: bool) -> Self
pub fn dacl_defaulted(self, value: bool) -> Self
Sets the DACL-defaulted control flag.
Sourcepub fn dacl_auto_inherit_required(self, value: bool) -> Self
pub fn dacl_auto_inherit_required(self, value: bool) -> Self
Sets the DACL auto-inheritance-requested control flag.
Sourcepub fn dacl_auto_inherited(self, value: bool) -> Self
pub fn dacl_auto_inherited(self, value: bool) -> Self
Sets the DACL auto-inherited control flag.
Sourcepub fn dacl_protected(self, value: bool) -> Self
pub fn dacl_protected(self, value: bool) -> Self
Sets the DACL-protected control flag.
Sourcepub fn sacl_present(self, value: bool) -> Self
pub fn sacl_present(self, value: bool) -> Self
Sets whether a SACL is present.
Sourcepub fn sacl_defaulted(self, value: bool) -> Self
pub fn sacl_defaulted(self, value: bool) -> Self
Sets the SACL-defaulted control flag.
Sourcepub fn sacl_auto_inherit_required(self, value: bool) -> Self
pub fn sacl_auto_inherit_required(self, value: bool) -> Self
Sets the SACL auto-inheritance-requested control flag.
Sourcepub fn sacl_auto_inherited(self, value: bool) -> Self
pub fn sacl_auto_inherited(self, value: bool) -> Self
Sets the SACL auto-inherited control flag.
Sourcepub fn sacl_protected(self, value: bool) -> Self
pub fn sacl_protected(self, value: bool) -> Self
Sets the SACL-protected control flag.
Sourcepub fn rm_control(self, rm_control: Option<u8>) -> Self
pub fn rm_control(self, rm_control: Option<u8>) -> Self
Sets the resource-manager control byte, or clears its validity with None.
Trait Implementations§
Source§impl Clone for SecDescUpdate
impl Clone for SecDescUpdate
Source§fn clone(&self) -> SecDescUpdate
fn clone(&self) -> SecDescUpdate
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more