pub enum IdentityPart {
Host,
User,
Group,
Groups,
Umask,
Machine,
CpuModel,
}Expand description
One value of a CacheIdentity.
Variants§
Host
The host name.
User
The effective user ID.
Group
The effective group ID.
Groups
The supplementary groups.
Umask
The umask.
Machine
The machine architecture.
CpuModel
The CPU model.
Implementations§
Source§impl IdentityPart
impl IdentityPart
Sourcepub const ALL: [Self; 7]
pub const ALL: [Self; 7]
Every value, in the order of the fields of CacheIdentity.
Sourcepub fn differs(self, stored: &CacheIdentity, current: &CacheIdentity) -> bool
pub fn differs(self, stored: &CacheIdentity, current: &CacheIdentity) -> bool
Whether this value of stored differs from the same value of current,
compared as the fields hold them, not as messages show them.
Sourcepub fn value(self, identity: &CacheIdentity) -> String
pub fn value(self, identity: &CacheIdentity) -> String
This value of identity, as messages show it.
Different values always show different text: names are quoted, with every
quote, backslash and control character escaped; group IDs and CPU models are
bracketed lists, so an empty list, a list of one empty name, and a list of one
name that holds a separator all show apart; and the umask is four octal digits,
or unknown when the status file had no Umask line.
Trait Implementations§
Source§impl Clone for IdentityPart
impl Clone for IdentityPart
impl Copy for IdentityPart
Source§impl Debug for IdentityPart
impl Debug for IdentityPart
Source§impl Display for IdentityPart
impl Display for IdentityPart
impl Eq for IdentityPart
Source§impl Hash for IdentityPart
impl Hash for IdentityPart
Source§impl Ord for IdentityPart
impl Ord for IdentityPart
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for IdentityPart
impl PartialEq for IdentityPart
Source§impl PartialOrd for IdentityPart
impl PartialOrd for IdentityPart
impl StructuralPartialEq for IdentityPart
Auto Trait Implementations§
impl Freeze for IdentityPart
impl RefUnwindSafe for IdentityPart
impl Send for IdentityPart
impl Sync for IdentityPart
impl Unpin for IdentityPart
impl UnsafeUnpin for IdentityPart
impl UnwindSafe for IdentityPart
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.