pub enum L1SwrRead {
Fresh(Vec<u8>),
Stale(Vec<u8>),
Miss,
}Expand description
Outcome of an SWR-aware L1 read — see L1Cache::get_with_swr.
Variants§
Fresh(Vec<u8>)
Entry present and within its freshness window: serve as-is.
Stale(Vec<u8>)
Entry present but past the freshness threshold (and before hard expiry): serve it, but the caller should schedule a background refresh.
Miss
Entry absent or hard-expired: a normal (blocking) miss.
Trait Implementations§
impl StructuralPartialEq for L1SwrRead
Auto Trait Implementations§
impl Freeze for L1SwrRead
impl RefUnwindSafe for L1SwrRead
impl Send for L1SwrRead
impl Sync for L1SwrRead
impl Unpin for L1SwrRead
impl UnsafeUnpin for L1SwrRead
impl UnwindSafe for L1SwrRead
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