pub enum NonceOutcome {
Fresh,
Replayed,
}Expand description
Outcome of a Eip3009NonceStore::record_if_fresh call.
Mirrors the RecordOutcome contract in
chio-custody-hw::nonce_store for consistency across the trust
boundaries: recording a fresh nonce returns NonceOutcome::Fresh;
a previously-seen nonce returns NonceOutcome::Replayed and the
caller MUST abort settlement.
Variants§
Fresh
The (authorizer, nonce) pair was not present and has now been
recorded.
Replayed
The pair was already present. Settlement MUST fail closed.
Trait Implementations§
Source§impl Clone for NonceOutcome
impl Clone for NonceOutcome
Source§fn clone(&self) -> NonceOutcome
fn clone(&self) -> NonceOutcome
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 NonceOutcome
Source§impl Debug for NonceOutcome
impl Debug for NonceOutcome
impl Eq for NonceOutcome
Source§impl PartialEq for NonceOutcome
impl PartialEq for NonceOutcome
impl StructuralPartialEq for NonceOutcome
Auto Trait Implementations§
impl Freeze for NonceOutcome
impl RefUnwindSafe for NonceOutcome
impl Send for NonceOutcome
impl Sync for NonceOutcome
impl Unpin for NonceOutcome
impl UnsafeUnpin for NonceOutcome
impl UnwindSafe for NonceOutcome
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