Trait windows_permissions::WindowsSecure[][src]

pub trait WindowsSecure {
    fn security_descriptor(
        &self,
        sec_info: SecurityInformation
    ) -> Result<LocalBox<SecurityDescriptor>>;
fn set_owner(&mut self, owner: &Sid) -> Result<()>;
fn set_group(&mut self, group: &Sid) -> Result<()>;
fn set_dacl(&mut self, dacl: &Acl) -> Result<()>;
fn set_sacl(&mut self, sacl: &Acl) -> Result<()>; fn set_multiple(
        &mut self,
        owner: Option<&Sid>,
        group: Option<&Sid>,
        dacl: Option<&Acl>,
        sacl: Option<&Acl>
    ) -> Result<()> { ... }
fn set_security_descriptor(&mut self, sd: &SecurityDescriptor) -> Result<()> { ... } }
Expand description

A trait indicating that an object is subject to Windows security.

Required methods

Get a security descriptor for the object

Set the object’s owner

Set the object’s group

Set the object’s DACL

Set the object’s SACL

Provided methods

Set multiple security options at once

Some securable objects may be able to set multiple security options at the same time with less overhead. The default implementation just calls each of the other functions one at a time.

This does not guarantee an atomic update. It is possible that only some of the options will be updated.

Set the object’s security descriptor.

Implementations on Foreign Types

Implementors