pub struct GlobalPrincipalIdentifier(pub NonZeroU64);Expand description
Unique principal identifier across the whole system.
Tuple Fields§
§0: NonZeroU64Implementations§
Source§impl GlobalPrincipalIdentifier
impl GlobalPrincipalIdentifier
Sourcepub fn new_for_test(value: u64) -> Self
pub fn new_for_test(value: u64) -> Self
Should only be generated by a GlobalPrincipalIdentifierFactory except for tests.
Trait Implementations§
Source§impl Clone for GlobalPrincipalIdentifier
impl Clone for GlobalPrincipalIdentifier
Source§fn clone(&self) -> GlobalPrincipalIdentifier
fn clone(&self) -> GlobalPrincipalIdentifier
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 GlobalPrincipalIdentifier
Source§impl Debug for GlobalPrincipalIdentifier
impl Debug for GlobalPrincipalIdentifier
impl Eq for GlobalPrincipalIdentifier
Source§impl From<GlobalPrincipalIdentifier> for PrincipalIdentifier
impl From<GlobalPrincipalIdentifier> for PrincipalIdentifier
Source§fn from(value: GlobalPrincipalIdentifier) -> PrincipalIdentifier
fn from(value: GlobalPrincipalIdentifier) -> PrincipalIdentifier
Converts to this type from the input type.
Source§impl From<PrincipalIdentifier> for GlobalPrincipalIdentifier
impl From<PrincipalIdentifier> for GlobalPrincipalIdentifier
Source§fn from(value: PrincipalIdentifier) -> Self
fn from(value: PrincipalIdentifier) -> Self
Converts to this type from the input type.
Source§impl Hash for GlobalPrincipalIdentifier
impl Hash for GlobalPrincipalIdentifier
Source§impl Ord for GlobalPrincipalIdentifier
impl Ord for GlobalPrincipalIdentifier
Source§fn cmp(&self, other: &GlobalPrincipalIdentifier) -> Ordering
fn cmp(&self, other: &GlobalPrincipalIdentifier) -> 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 PartialOrd for GlobalPrincipalIdentifier
impl PartialOrd for GlobalPrincipalIdentifier
impl StructuralPartialEq for GlobalPrincipalIdentifier
Auto Trait Implementations§
impl Freeze for GlobalPrincipalIdentifier
impl RefUnwindSafe for GlobalPrincipalIdentifier
impl Send for GlobalPrincipalIdentifier
impl Sync for GlobalPrincipalIdentifier
impl Unpin for GlobalPrincipalIdentifier
impl UnsafeUnpin for GlobalPrincipalIdentifier
impl UnwindSafe for GlobalPrincipalIdentifier
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