pub enum RecoveryOutcome {
Served,
Miss,
DeserializationError,
}Expand description
Terminal outcomes of stale-on-error recovery.
Variants§
Served
A retained stale frame passed the return-time age check and supplied the result.
Miss
No retained frame remained eligible: none was kept, or its age reached the ceiling.
DeserializationError
Decoding the retained frame failed.
Implementations§
Trait Implementations§
Source§impl Clone for RecoveryOutcome
impl Clone for RecoveryOutcome
Source§fn clone(&self) -> RecoveryOutcome
fn clone(&self) -> RecoveryOutcome
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 RecoveryOutcome
Source§impl Debug for RecoveryOutcome
impl Debug for RecoveryOutcome
Source§impl Display for RecoveryOutcome
impl Display for RecoveryOutcome
impl Eq for RecoveryOutcome
Source§impl Hash for RecoveryOutcome
impl Hash for RecoveryOutcome
Source§impl PartialEq for RecoveryOutcome
impl PartialEq for RecoveryOutcome
Source§fn eq(&self, other: &RecoveryOutcome) -> bool
fn eq(&self, other: &RecoveryOutcome) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RecoveryOutcome
Auto Trait Implementations§
impl Freeze for RecoveryOutcome
impl RefUnwindSafe for RecoveryOutcome
impl Send for RecoveryOutcome
impl Sync for RecoveryOutcome
impl Unpin for RecoveryOutcome
impl UnsafeUnpin for RecoveryOutcome
impl UnwindSafe for RecoveryOutcome
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.