pub struct RecoveryItem {
pub key: Arc<str>,
pub action: RecoveryAction,
pub timestamp: Timestamp,
pub expires_at: Timestamp,
pub remaining_retries: Option<u32>,
}Expand description
A queued operation awaiting replay.
Fields§
§key: Arc<str>The (prefixed) cache key.
action: RecoveryActionWhat to replay.
timestamp: TimestampWhen the original operation happened (newer wins on dedup).
expires_at: TimestampWhen this item should be abandoned (drop if now >= expires_at).
remaining_retries: Option<u32>How many replay attempts remain (None ⇒ unbounded).
Trait Implementations§
Source§impl Clone for RecoveryItem
impl Clone for RecoveryItem
Source§fn clone(&self) -> RecoveryItem
fn clone(&self) -> RecoveryItem
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 moreAuto Trait Implementations§
impl Freeze for RecoveryItem
impl RefUnwindSafe for RecoveryItem
impl Send for RecoveryItem
impl Sync for RecoveryItem
impl Unpin for RecoveryItem
impl UnsafeUnpin for RecoveryItem
impl UnwindSafe for RecoveryItem
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