pub struct DhtHealth {
pub health_score: f64,
pub query_success_rate: f64,
pub cache_hit_rate: f64,
pub peer_count: usize,
pub cached_query_count: usize,
pub provider_count: usize,
pub status: DhtHealthStatus,
}Expand description
DHT health status
Fields§
§health_score: f64Overall health score (0.0 - 1.0)
query_success_rate: f64Query success rate (0.0 - 1.0)
cache_hit_rate: f64Cache hit rate (0.0 - 1.0)
peer_count: usizeNumber of cached peers
cached_query_count: usizeNumber of cached queries
provider_count: usizeNumber of active provider records
status: DhtHealthStatusHealth status description
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DhtHealth
impl RefUnwindSafe for DhtHealth
impl Send for DhtHealth
impl Sync for DhtHealth
impl Unpin for DhtHealth
impl UnwindSafe for DhtHealth
Blanket Implementations§
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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