pub struct SecurityId(/* private fields */);
Expand description
A user security id (SID).
Implementations§
Source§impl SecurityId
impl SecurityId
Sourcepub fn new(id: impl AsRef<OsStr>) -> Self
pub fn new(id: impl AsRef<OsStr>) -> Self
Creates a new SecurityId from OsString.
§Panics
Panics if the security id contains an exclamation point.
Sourcepub fn current_user() -> Result<Self>
pub fn current_user() -> Result<Self>
The SecurityId for the logged in user.
Trait Implementations§
Source§impl Clone for SecurityId
impl Clone for SecurityId
Source§fn clone(&self) -> SecurityId
fn clone(&self) -> SecurityId
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for SecurityId
impl RefUnwindSafe for SecurityId
impl Send for SecurityId
impl Sync for SecurityId
impl Unpin for SecurityId
impl UnwindSafe for SecurityId
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