pub struct NetworkStat {
pub key: String,
pub source: String,
pub value: i64,
pub truncated: bool,
pub observed_at: String,
}Expand description
One relay’s observation of how many repos hold a collection
(design/NETWORK-SPEC.md §4.3). A projection: droppable, rebuildable from
the network, and never read by anything on the reading path.
Fields§
§key: StringThe metric key, e.g. ADOPTION_STAT_KEY.
source: StringThe relay base URL the number came from.
value: i64The observed count.
truncated: boolSet when the probe hit its page cap: the value is a floor, not a count.
observed_at: StringWhen the observation was taken (RFC3339, UTC).
Trait Implementations§
Source§impl Clone for NetworkStat
impl Clone for NetworkStat
Source§fn clone(&self) -> NetworkStat
fn clone(&self) -> NetworkStat
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 NetworkStat
impl Debug for NetworkStat
impl Eq for NetworkStat
Source§impl<'a, R: Row> FromRow<'a, R> for NetworkStat
impl<'a, R: Row> FromRow<'a, R> for NetworkStat
Source§impl PartialEq for NetworkStat
impl PartialEq for NetworkStat
impl StructuralPartialEq for NetworkStat
Auto Trait Implementations§
impl Freeze for NetworkStat
impl RefUnwindSafe for NetworkStat
impl Send for NetworkStat
impl Sync for NetworkStat
impl Unpin for NetworkStat
impl UnsafeUnpin for NetworkStat
impl UnwindSafe for NetworkStat
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<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
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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