Enum kitsune_p2p::event::MetricQuery [−][src]
pub enum MetricQuery {
LastSync {
agent: Arc<KitsuneAgent>,
},
Oldest {
last_connect_error_threshold: SystemTime,
},
}
Expand description
Different kinds of queries about metric data
Variants
LastSync
Fields
agent: Arc<KitsuneAgent>
The agent to query by
Filters for the “last sync” query.
Oldest
Fields
last_connect_error_threshold: SystemTime
Agents whose last connection error is earlier than this time will be filtered out.
Filters for the “oldest agent” query.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for MetricQuery
impl Send for MetricQuery
impl Sync for MetricQuery
impl Unpin for MetricQuery
impl UnwindSafe for MetricQuery
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
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>
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more