pub struct StaleClaim { /* private fields */ }Expand description
A claim that is no longer the current holder of its key.
Implementations§
Source§impl StaleClaim
impl StaleClaim
Sourcepub fn new(token: &ClaimToken) -> Self
pub fn new(token: &ClaimToken) -> Self
The refusal, naming the key and the attempt that was too late.
Sourcepub const fn key(&self) -> &IdempotencyKey
pub const fn key(&self) -> &IdempotencyKey
The key.
Sourcepub const fn stale_generation(&self) -> u64
pub const fn stale_generation(&self) -> u64
The attempt that was too late.
Trait Implementations§
Source§impl Clone for StaleClaim
impl Clone for StaleClaim
Source§impl Debug for StaleClaim
impl Debug for StaleClaim
Source§impl Display for StaleClaim
impl Display for StaleClaim
impl Eq for StaleClaim
Source§impl Error for StaleClaim
impl Error for StaleClaim
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<StaleClaim> for IdempotencyError
impl From<StaleClaim> for IdempotencyError
Source§fn from(source: StaleClaim) -> Self
fn from(source: StaleClaim) -> Self
Converts to this type from the input type.
Source§impl PartialEq for StaleClaim
impl PartialEq for StaleClaim
impl StructuralPartialEq for StaleClaim
Auto Trait Implementations§
impl Freeze for StaleClaim
impl RefUnwindSafe for StaleClaim
impl Send for StaleClaim
impl Sync for StaleClaim
impl Unpin for StaleClaim
impl UnsafeUnpin for StaleClaim
impl UnwindSafe for StaleClaim
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