#[non_exhaustive]pub enum RequestOutcome {
L1Hit,
L2Hit,
Miss,
Accepted,
Overloaded,
InvalidInput,
Unavailable,
Error,
Cancelled,
}Expand description
Mutually exclusive terminal result; internal events may overlap these counts.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
L1Hit
A value found in L1 at lookup, not an L2 value subsequently promoted.
L2Hit
A validated L2 value, including values promoted to L1 before return.
Miss
No value returned, including fail-open and post-close gets.
Accepted
Mutation accepted; does not imply flush or durability.
Overloaded
Explicit bounded admission or deadline rejection.
InvalidInput
Invalid public mutation input.
Mutation attempted after shutdown or loss of availability.
Error
Another explicit public error; safe fail-open reads remain misses.
Cancelled
A polled get future dropped before returning; duration is partial lifetime.
Implementations§
Trait Implementations§
Source§impl Clone for RequestOutcome
impl Clone for RequestOutcome
impl Copy for RequestOutcome
Source§impl Debug for RequestOutcome
impl Debug for RequestOutcome
Source§impl Display for RequestOutcome
impl Display for RequestOutcome
impl Eq for RequestOutcome
Source§impl Hash for RequestOutcome
impl Hash for RequestOutcome
Source§impl PartialEq for RequestOutcome
impl PartialEq for RequestOutcome
impl StructuralPartialEq for RequestOutcome
Auto Trait Implementations§
impl Forget for RequestOutcome
impl Freeze for RequestOutcome
impl Move for RequestOutcome
impl RefUnwindSafe for RequestOutcome
impl Send for RequestOutcome
impl Sync for RequestOutcome
impl Unpin for RequestOutcome
impl UnsafeUnpin for RequestOutcome
impl UnwindSafe for RequestOutcome
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