Enum kitsune_p2p::event::MetricQueryAnswer [−][src]
pub enum MetricQueryAnswer {
LastSync(Option<SystemTime>),
Oldest(Option<Arc<KitsuneAgent>>),
}
Expand description
Corresponding response to MetricQuery
Variants
LastSync(Option<SystemTime>)
Tuple Fields
0: Option<SystemTime>
The last sync time for all agents.
Oldest(Option<Arc<KitsuneAgent>>)
Tuple Fields
0: Option<Arc<KitsuneAgent>>
The agent with the oldest last-connection time which satisfies the 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 MetricQueryAnswer
impl Send for MetricQueryAnswer
impl Sync for MetricQueryAnswer
impl Unpin for MetricQueryAnswer
impl UnwindSafe for MetricQueryAnswer
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