pub struct StoreBounds {
pub max_producers: usize,
pub producers: usize,
pub sets_evicted: u64,
pub queriers_evicted: u64,
pub gates_evicted: u64,
}Available on crate feature
decode only.Expand description
What one store’s bounds have cost, as of one read (#340, RFC 13 §3 O6).
Three numbers, not one, because they are three different facts and only the first hides anything: an evicted set is a schema the next sample of that producer must re-ask for; an evicted querier is routing state that gets re-declared; an evicted gate is at worst one duplicate GET. Folding them would report a re-declared querier as lost knowledge.
Fields§
§max_producers: usizeThe producer bound in force.
producers: usizeProducers currently answered-for — the length of SchemaStore::known.
sets_evicted: u64Cached describe answers dropped under the bound. Non-zero means a
decode may re-ask for something this store had already learned.
queriers_evicted: u64Declared queriers dropped under the bound.
gates_evicted: u64Single-flight gates dropped under the bound.
Trait Implementations§
Source§impl Clone for StoreBounds
impl Clone for StoreBounds
Source§fn clone(&self) -> StoreBounds
fn clone(&self) -> StoreBounds
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 moreimpl Copy for StoreBounds
Source§impl Debug for StoreBounds
impl Debug for StoreBounds
Source§impl Default for StoreBounds
impl Default for StoreBounds
Source§fn default() -> StoreBounds
fn default() -> StoreBounds
Returns the “default value” for a type. Read more
impl Eq for StoreBounds
Source§impl PartialEq for StoreBounds
impl PartialEq for StoreBounds
impl StructuralPartialEq for StoreBounds
Auto Trait Implementations§
impl Freeze for StoreBounds
impl RefUnwindSafe for StoreBounds
impl Send for StoreBounds
impl Sync for StoreBounds
impl Unpin for StoreBounds
impl UnsafeUnpin for StoreBounds
impl UnwindSafe for StoreBounds
Blanket Implementations§
Source§impl<Source> AccessAs for Source
impl<Source> AccessAs for Source
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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