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<()> { ... } }

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

Required methods

fn security_descriptor(
    &self,
    sec_info: SecurityInformation
) -> Result<LocalBox<SecurityDescriptor>>
[src]

Get a security descriptor for the object

fn set_owner(&mut self, owner: &Sid) -> Result<()>[src]

Set the object’s owner

fn set_group(&mut self, group: &Sid) -> Result<()>[src]

Set the object’s group

fn set_dacl(&mut self, dacl: &Acl) -> Result<()>[src]

Set the object’s DACL

fn set_sacl(&mut self, sacl: &Acl) -> Result<()>[src]

Set the object’s SACL

Loading content...

Provided methods

fn set_multiple(
    &mut self,
    owner: Option<&Sid>,
    group: Option<&Sid>,
    dacl: Option<&Acl>,
    sacl: Option<&Acl>
) -> Result<()>
[src]

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.

fn set_security_descriptor(&mut self, sd: &SecurityDescriptor) -> Result<()>[src]

Set the object’s security descriptor.

Loading content...

Implementations on Foreign Types

impl WindowsSecure for OsStr[src]

Loading content...

Implementors

impl<T> WindowsSecure for T where
    T: AsRawHandle
[src]

Loading content...