pub struct SecurityDescriptor { /* private fields */ }Expand description
Security descriptor model containing owner/group and DACL.
Implementations§
Source§impl SecurityDescriptor
impl SecurityDescriptor
Sourcepub fn for_file_path(path: impl Into<String>) -> Self
pub fn for_file_path(path: impl Into<String>) -> Self
Create descriptor bound to a file path.
Sourcepub fn for_registry_path(path: impl Into<String>) -> Self
pub fn for_registry_path(path: impl Into<String>) -> Self
Create descriptor bound to a registry path.
Sourcepub fn with_owner(self, owner: Sid) -> Self
pub fn with_owner(self, owner: Sid) -> Self
Set owner SID.
Sourcepub fn with_group(self, group: Sid) -> Self
pub fn with_group(self, group: Sid) -> Self
Set group SID.
Sourcepub fn target(&self) -> &SecurityTarget
pub fn target(&self) -> &SecurityTarget
Returns target information.
Trait Implementations§
Source§impl Clone for SecurityDescriptor
impl Clone for SecurityDescriptor
Source§fn clone(&self) -> SecurityDescriptor
fn clone(&self) -> SecurityDescriptor
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 moreSource§impl Debug for SecurityDescriptor
impl Debug for SecurityDescriptor
Source§impl Default for SecurityDescriptor
impl Default for SecurityDescriptor
Source§impl PartialEq for SecurityDescriptor
impl PartialEq for SecurityDescriptor
impl Eq for SecurityDescriptor
impl StructuralPartialEq for SecurityDescriptor
Auto Trait Implementations§
impl Freeze for SecurityDescriptor
impl RefUnwindSafe for SecurityDescriptor
impl Send for SecurityDescriptor
impl Sync for SecurityDescriptor
impl Unpin for SecurityDescriptor
impl UnsafeUnpin for SecurityDescriptor
impl UnwindSafe for SecurityDescriptor
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