pub enum AdmittedTrustee {
LocalSystem,
Administrators,
SelectedAccount,
}Expand description
One trustee a runner root admits, named without naming an account.
The task’s scope note is “add privileged inspection output without exposing
identities beyond what existing service status already reports”, and what
service status already reports is crate::service::ServiceAccount —
NT AUTHORITY\SYSTEM, or the words “the invoking user”. So this is an enum
of the same three ideas rather than a list of SIDs, and no caller can print
one by accident.
Variants§
LocalSystem
SY, NT AUTHORITY\SYSTEM.
Administrators
BA, the local Administrators group.
SelectedAccount
The login or foreground account the registration selected.
Trait Implementations§
Source§impl Clone for AdmittedTrustee
impl Clone for AdmittedTrustee
Source§fn clone(&self) -> AdmittedTrustee
fn clone(&self) -> AdmittedTrustee
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 AdmittedTrustee
Source§impl Debug for AdmittedTrustee
impl Debug for AdmittedTrustee
Source§impl Display for AdmittedTrustee
impl Display for AdmittedTrustee
impl Eq for AdmittedTrustee
Source§impl Ord for AdmittedTrustee
impl Ord for AdmittedTrustee
Source§fn cmp(&self, other: &AdmittedTrustee) -> Ordering
fn cmp(&self, other: &AdmittedTrustee) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for AdmittedTrustee
impl PartialEq for AdmittedTrustee
Source§impl PartialOrd for AdmittedTrustee
impl PartialOrd for AdmittedTrustee
impl StructuralPartialEq for AdmittedTrustee
Auto Trait Implementations§
impl Freeze for AdmittedTrustee
impl RefUnwindSafe for AdmittedTrustee
impl Send for AdmittedTrustee
impl Sync for AdmittedTrustee
impl Unpin for AdmittedTrustee
impl UnsafeUnpin for AdmittedTrustee
impl UnwindSafe for AdmittedTrustee
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