pub struct SecurityInformation(/* private fields */);Expand description
Which parts of a descriptor to write as text.
A newtype over OBJECT_SECURITY_INFORMATION, because the value is a combination and Windows
defines more bits than are named here. Nothing is defaulted on a caller’s behalf: a mask that
selects nothing is Windows’ to answer.
§Example
use win_authorization_sys::SecurityInformation;
let both = SecurityInformation::OWNER | SecurityInformation::DACL;
assert!(both.contains(SecurityInformation::OWNER));
assert!(both.contains(SecurityInformation::DACL));
assert!(!both.contains(SecurityInformation::SACL));Implementations§
Source§impl SecurityInformation
impl SecurityInformation
Sourcepub const NONE: SecurityInformation
pub const NONE: SecurityInformation
No part: what Windows makes of an empty selection is its to say.
Sourcepub const OWNER: SecurityInformation
pub const OWNER: SecurityInformation
OWNER_SECURITY_INFORMATION: the owner SID.
Sourcepub const GROUP: SecurityInformation
pub const GROUP: SecurityInformation
GROUP_SECURITY_INFORMATION: the primary group SID.
Sourcepub const DACL: SecurityInformation
pub const DACL: SecurityInformation
DACL_SECURITY_INFORMATION: the discretionary access-control list.
Sourcepub const SACL: SecurityInformation
pub const SACL: SecurityInformation
SACL_SECURITY_INFORMATION: the system access-control list.
Sourcepub const LABEL: SecurityInformation
pub const LABEL: SecurityInformation
LABEL_SECURITY_INFORMATION: the mandatory integrity label.
Sourcepub const fn from_bits(bits: u32) -> SecurityInformation
pub const fn from_bits(bits: u32) -> SecurityInformation
A selection from its raw bits, for a part Windows defines that this crate has no name for.
Sourcepub const fn contains(self, other: SecurityInformation) -> bool
pub const fn contains(self, other: SecurityInformation) -> bool
Whether every bit of other is set. Everything contains NONE.
Trait Implementations§
Source§impl BitOr for SecurityInformation
impl BitOr for SecurityInformation
Source§type Output = SecurityInformation
type Output = SecurityInformation
| operator.Source§fn bitor(self, other: SecurityInformation) -> SecurityInformation
fn bitor(self, other: SecurityInformation) -> SecurityInformation
| operation. Read moreSource§impl Clone for SecurityInformation
impl Clone for SecurityInformation
Source§fn clone(&self) -> SecurityInformation
fn clone(&self) -> SecurityInformation
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more