pub enum HostPrivilegedIdentity {
UnixRoot,
WindowsLocalSystem,
}Expand description
A privileged system identity this process may be running as.
The variants name the answer, not the mechanism: what a caller does with
“this process is the machine’s system account” does not change with how the
host was asked. None from current_process_privilege means an ordinary
user, which is the only case most callers care to distinguish.
Variants§
Trait Implementations§
Source§impl Clone for PrivilegedIdentity
impl Clone for PrivilegedIdentity
Source§fn clone(&self) -> PrivilegedIdentity
fn clone(&self) -> PrivilegedIdentity
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PrivilegedIdentity
Source§impl Debug for PrivilegedIdentity
impl Debug for PrivilegedIdentity
Source§impl Display for PrivilegedIdentity
impl Display for PrivilegedIdentity
impl Eq for PrivilegedIdentity
Source§impl PartialEq for PrivilegedIdentity
impl PartialEq for PrivilegedIdentity
impl StructuralPartialEq for PrivilegedIdentity
Auto Trait Implementations§
impl Freeze for PrivilegedIdentity
impl RefUnwindSafe for PrivilegedIdentity
impl Send for PrivilegedIdentity
impl Sync for PrivilegedIdentity
impl Unpin for PrivilegedIdentity
impl UnsafeUnpin for PrivilegedIdentity
impl UnwindSafe for PrivilegedIdentity
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more