pub struct Group { /* private fields */ }
Expand description
Token group entry – SID plus its attribute flags.
Implementations§
Source§impl Group
impl Group
Sourcepub fn attributes(&self) -> u32
pub fn attributes(&self) -> u32
Raw attribute flags (see SE_GROUP_*
).
Sourcepub fn account(&self) -> Result<(String, String)>
pub fn account(&self) -> Result<(String, String)>
Convenience helper – resolve account/domain names (delegates to the SID).
Sourcepub fn new(sid: Sid, attributes: u32) -> Self
pub fn new(sid: Sid, attributes: u32) -> Self
Construct a group specification from a Sid
and an explicit
attribute mask (see SE_GROUP_*
). This gives you full control over the
SID_AND_ATTRIBUTES::Attributes
field that will be passed to
AdjustTokenGroups
.
Trait Implementations§
impl Eq for Group
impl StructuralPartialEq for Group
Auto Trait Implementations§
impl Freeze for Group
impl RefUnwindSafe for Group
impl Send for Group
impl Sync for Group
impl Unpin for Group
impl UnwindSafe for Group
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