pub struct BucketStat {
pub index: u16,
pub fill: u16,
}Expand description
Per-bucket fill stat for admin_v1_status (issue #741). One entry
per non-empty Kademlia k-bucket — empty buckets (the vast majority
of the 256-bucket keyspace on a small network) are omitted so the
snapshot stays compact. The bucket capacity is the same Kademlia K
for every bucket and so lives once on RoutingHealth::bucket_capacity
rather than being repeated here.
Fields§
§index: u16Bucket index 0..=255 (XOR-distance shell from this node’s id).
fill: u16Live peers currently held in the bucket
(1..=RoutingHealth::bucket_capacity).
Trait Implementations§
Source§impl Clone for BucketStat
impl Clone for BucketStat
Source§impl Debug for BucketStat
impl Debug for BucketStat
Source§impl<'de> Deserialize<'de> for BucketStat
impl<'de> Deserialize<'de> for BucketStat
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for BucketStat
impl RefUnwindSafe for BucketStat
impl Send for BucketStat
impl Sync for BucketStat
impl Unpin for BucketStat
impl UnsafeUnpin for BucketStat
impl UnwindSafe for BucketStat
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
impl<'de, T> BorrowedRpcObject<'de> for T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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