pub enum CacheOutcome {
Hit(Vec<u8>),
Miss(Vec<u8>),
Uncached(Vec<u8>),
}Expand description
The outcome of a cache-mediated dispatch — lets the caller emit the right
cache:hit / cache:miss audit signal without re-deriving it.
Variants§
Hit(Vec<u8>)
Miss(Vec<u8>)
Uncached(Vec<u8>)
The tool is not cache-eligible; carries the freshly computed value so
the caller uses it exactly as it would a Miss, minus the audit signal.
Implementations§
Trait Implementations§
Source§impl Clone for CacheOutcome
impl Clone for CacheOutcome
Source§fn clone(&self) -> CacheOutcome
fn clone(&self) -> CacheOutcome
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 moreSource§impl Debug for CacheOutcome
impl Debug for CacheOutcome
impl Eq for CacheOutcome
Source§impl PartialEq for CacheOutcome
impl PartialEq for CacheOutcome
impl StructuralPartialEq for CacheOutcome
Auto Trait Implementations§
impl Freeze for CacheOutcome
impl RefUnwindSafe for CacheOutcome
impl Send for CacheOutcome
impl Sync for CacheOutcome
impl Unpin for CacheOutcome
impl UnsafeUnpin for CacheOutcome
impl UnwindSafe for CacheOutcome
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