enum EvictedCache {
ReplyOpenerBatch,
ReplyOpener,
SurbRing,
RingPlain,
RingShare,
Generation,
QuarantineRing,
}Expand description
Which of the store’s caches shed an entry. Doubles as the cache label on metrics and log lines.
The two Ring* variants are not caches in the moka sense: they count the SURBs that one
pseudonym’s full ring buffer drops or refuses ([RemovalCause::Size]), or a generation change takes out
of play ([RemovalCause::Replaced]), split by what that costs, so that the same per-interval summary can tell a
routine loss from a permanent one.
Variants§
ReplyOpenerBatch
Sending side: all reply openers of one pseudonym (pseudonym_openers).
ReplyOpener
Sending side: a single reply opener within a pseudonym’s batch.
SurbRing
Replying side: a pseudonym’s SURB ring buffer (admitted_surbs_per_pseudonym).
RingPlain
Replying side: a share-less SURB a full ring buffer dropped, or refused as a newcomer. A lost return path and nothing more, and routine while a sender that bypasses the balancer gate outproduces what this side spends.
Replying side: a SURB carrying a PIX share that a full ring buffer dropped or a generation change took out of play. A share reaches the reconstructor only when its SURB is used, so the share is lost for good.
Generation
Sending side: a pseudonym’s SURB generation serial (generations).
QuarantineRing
Replying side: a pseudonym’s quarantine SURB ring buffer (quarantine_surbs). Unadmitted
SURBs only, so an eviction here costs nothing an established Session holds.
Implementations§
Source§impl EvictedCache
impl EvictedCache
const ALL: [EvictedCache; 7]
Trait Implementations§
Source§impl Clone for EvictedCache
impl Clone for EvictedCache
Source§fn clone(&self) -> EvictedCache
fn clone(&self) -> EvictedCache
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for EvictedCache
Source§impl Debug for EvictedCache
impl Debug for EvictedCache
Source§impl Display for EvictedCache
impl Display for EvictedCache
impl Eq for EvictedCache
Source§impl<'_derivative_strum> From<&'_derivative_strum EvictedCache> for &'static str
impl<'_derivative_strum> From<&'_derivative_strum EvictedCache> for &'static str
Source§fn from(x: &'_derivative_strum EvictedCache) -> &'static str
fn from(x: &'_derivative_strum EvictedCache) -> &'static str
Source§impl From<EvictedCache> for &'static str
impl From<EvictedCache> for &'static str
Source§fn from(x: EvictedCache) -> &'static str
fn from(x: EvictedCache) -> &'static str
Source§impl PartialEq for EvictedCache
impl PartialEq for EvictedCache
impl StructuralPartialEq for EvictedCache
Auto Trait Implementations§
impl Freeze for EvictedCache
impl RefUnwindSafe for EvictedCache
impl Send for EvictedCache
impl Sync for EvictedCache
impl Unpin for EvictedCache
impl UnsafeUnpin for EvictedCache
impl UnwindSafe for EvictedCache
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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
key and return true if they are equal.§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
§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
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
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>
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