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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more