pub struct GrantLogId { /* private fields */ }Expand description
A grant log’s identity and its reset epoch: the revision domain a receipt revision belongs to. Revisions from different identities or epochs never compare.
Implementations§
Source§impl GrantLogId
impl GrantLogId
Sourcepub fn new(identity: &str, epoch: u64) -> Result<Self, InvalidGrantInput>
pub fn new(identity: &str, epoch: u64) -> Result<Self, InvalidGrantInput>
The log identity in reset epoch.
§Errors
InvalidGrantInput when the identity is empty or longer than
MAX_LOG_IDENTITY_LEN.
Trait Implementations§
Source§impl Clone for GrantLogId
impl Clone for GrantLogId
Source§impl Debug for GrantLogId
impl Debug for GrantLogId
impl Eq for GrantLogId
Source§impl Hash for GrantLogId
impl Hash for GrantLogId
Source§impl Ord for GrantLogId
impl Ord for GrantLogId
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 GrantLogId
impl PartialEq for GrantLogId
Source§impl PartialOrd for GrantLogId
impl PartialOrd for GrantLogId
impl StructuralPartialEq for GrantLogId
Auto Trait Implementations§
impl Freeze for GrantLogId
impl RefUnwindSafe for GrantLogId
impl Send for GrantLogId
impl Sync for GrantLogId
impl Unpin for GrantLogId
impl UnsafeUnpin for GrantLogId
impl UnwindSafe for GrantLogId
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
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,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.