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
fn security_descriptor(
&self,
sec_info: SecurityInformation
) -> Result<LocalBox<SecurityDescriptor>>
[src]
fn security_descriptor(
&self,
sec_info: SecurityInformation
) -> Result<LocalBox<SecurityDescriptor>>
[src]Get a security descriptor for the object
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.
fn set_security_descriptor(&mut self, sd: &SecurityDescriptor) -> Result<()>
[src]
fn set_security_descriptor(&mut self, sd: &SecurityDescriptor) -> Result<()>
[src]Set the object’s security descriptor.
Implementations on Foreign Types
fn security_descriptor(
&self,
sec_info: SecurityInformation
) -> Result<LocalBox<SecurityDescriptor>>
[src]Implementors
fn security_descriptor(
&self,
sec_info: SecurityInformation
) -> Result<LocalBox<SecurityDescriptor>>
[src]