pub struct OperationSequence(/* private fields */);Expand description
Per-issuer operation sequence used for replay detection.
Implementations§
Source§impl OperationSequence
impl OperationSequence
Sourcepub const fn new(value: u64) -> Result<Self, ValidationError>
pub const fn new(value: u64) -> Result<Self, ValidationError>
Creates a non-zero operation sequence.
Sourcepub const fn next(self) -> Result<Self, ValidationError>
pub const fn next(self) -> Result<Self, ValidationError>
Returns the next sequence value.
Sourcepub const fn immediately_follows(self, previous: Self) -> bool
pub const fn immediately_follows(self, previous: Self) -> bool
Returns true when this sequence immediately follows previous.
Trait Implementations§
Source§impl Clone for OperationSequence
impl Clone for OperationSequence
Source§fn clone(&self) -> OperationSequence
fn clone(&self) -> OperationSequence
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 OperationSequence
Source§impl Debug for OperationSequence
impl Debug for OperationSequence
impl Eq for OperationSequence
Source§impl Hash for OperationSequence
impl Hash for OperationSequence
Source§impl Ord for OperationSequence
impl Ord for OperationSequence
Source§fn cmp(&self, other: &OperationSequence) -> Ordering
fn cmp(&self, other: &OperationSequence) -> 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
Source§impl PartialEq for OperationSequence
impl PartialEq for OperationSequence
Source§fn eq(&self, other: &OperationSequence) -> bool
fn eq(&self, other: &OperationSequence) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for OperationSequence
impl PartialOrd for OperationSequence
impl StructuralPartialEq for OperationSequence
Auto Trait Implementations§
impl Freeze for OperationSequence
impl RefUnwindSafe for OperationSequence
impl Send for OperationSequence
impl Sync for OperationSequence
impl Unpin for OperationSequence
impl UnsafeUnpin for OperationSequence
impl UnwindSafe for OperationSequence
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