pub struct Sid { /* private fields */ }Expand description
A validated Windows Security Identifier.
Implementations§
Source§impl Sid
impl Sid
Sourcepub fn from_bytes(data: &[u8]) -> Result<Self>
pub fn from_bytes(data: &[u8]) -> Result<Self>
Create a SID from binary data.
Sourcepub fn from_sddl_trustee(value: &str) -> Result<Self>
pub fn from_sddl_trustee(value: &str) -> Result<Self>
Parse a SID from either canonical SID string (S-1-...) or SDDL trustee alias.
Sourcepub fn to_sddl_alias(&self) -> Option<&'static str>
pub fn to_sddl_alias(&self) -> Option<&'static str>
Returns a well-known SDDL alias for this SID when one exists.
Sourcepub fn eq_case_insensitive(&self, other: &str) -> bool
pub fn eq_case_insensitive(&self, other: &str) -> bool
Case-insensitive compare for SID strings.
Trait Implementations§
impl Eq for Sid
impl StructuralPartialEq for Sid
Auto Trait Implementations§
impl Freeze for Sid
impl RefUnwindSafe for Sid
impl Send for Sid
impl Sync for Sid
impl Unpin for Sid
impl UnsafeUnpin for Sid
impl UnwindSafe for Sid
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