pub struct PermissionEditPlan { /* private fields */ }Expand description
Built permission edit plan.
Implementations§
Source§impl PermissionEditPlan
impl PermissionEditPlan
Sourcepub fn execute(&self, current: &Dacl, mode: ApplyMode) -> PermissionEditResult
pub fn execute(&self, current: &Dacl, mode: ApplyMode) -> PermissionEditResult
Apply plan according to mode.
Sourcepub fn execute_on_descriptor(
&self,
current: &SecurityDescriptor,
mode: ApplyMode,
) -> DescriptorEditResult
pub fn execute_on_descriptor( &self, current: &SecurityDescriptor, mode: ApplyMode, ) -> DescriptorEditResult
Apply plan against a full security descriptor.
Sourcepub fn execute_for_target(
&self,
target: &PermissionTarget,
current: &SecurityDescriptor,
mode: ApplyMode,
) -> Result<DescriptorEditResult>
pub fn execute_for_target( &self, target: &PermissionTarget, current: &SecurityDescriptor, mode: ApplyMode, ) -> Result<DescriptorEditResult>
Execute and optionally persist against a target backend.
Apply mode requires backend write support.
Sourcepub fn execute_against_target(
&self,
target: &PermissionTarget,
mode: ApplyMode,
) -> Result<DescriptorEditResult>
pub fn execute_against_target( &self, target: &PermissionTarget, mode: ApplyMode, ) -> Result<DescriptorEditResult>
Read descriptor from target, execute plan, and optionally persist.
Trait Implementations§
Source§impl Clone for PermissionEditPlan
impl Clone for PermissionEditPlan
Source§fn clone(&self) -> PermissionEditPlan
fn clone(&self) -> PermissionEditPlan
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PermissionEditPlan
impl RefUnwindSafe for PermissionEditPlan
impl Send for PermissionEditPlan
impl Sync for PermissionEditPlan
impl Unpin for PermissionEditPlan
impl UnsafeUnpin for PermissionEditPlan
impl UnwindSafe for PermissionEditPlan
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