pub struct MeshRelayStats {
pub forwarded: u64,
pub transmissions: u64,
pub queued: u64,
pub awaiting_transmission: usize,
pub duplicates_suppressed: u64,
pub covered_by_a_neighbor: u64,
pub peer_rate_limited: u64,
pub rate_deferred: u64,
pub hop_limit_reached: u64,
pub reach_clamped: u64,
pub dropped_for_capacity: u64,
}Expand description
What this device has carried for other people.
A snapshot, safe to poll: every field counts since start-up.
Fields§
§forwarded: u64Frames carried onward on someone else’s behalf, counted once each.
transmissions: u64Times this device put a frame on a link, counting each link separately and including hand-offs of its own messages.
This is what the per-second forwarding budget bounds, so it is the
number to compare against that ceiling — Self::forwarded is the
contribution figure to show a user.
queued: u64Frames accepted for forwarding.
awaiting_transmission: usizeFrames waiting to go out right now.
duplicates_suppressed: u64Arrivals ignored because the frame had already been handled.
covered_by_a_neighbor: u64Forwards dropped because a neighbor transmitted the same frame first — the saving that keeps a crowded room from repeating itself.
peer_rate_limited: u64Frames refused because the neighbor sending them was over its share.
rate_deferred: u64Transmissions held back because this device was at its forwarding rate.
A frame counted here is delayed, not dropped: it goes back on the queue and is tried again on the next tick, until it is either sent or has waited so long past its turn that carrying it no longer helps.
hop_limit_reached: u64Frames that had travelled as far as they were allowed to.
reach_clamped: u64Frames whose claimed reach was cut down to local policy.
dropped_for_capacity: u64Ids forgotten for lack of room rather than age.
Expected to stay at zero. A non-zero value means this device is seeing more traffic than it can remember having handled, and a frame it forgets can be forwarded a second time.
Trait Implementations§
Source§impl Clone for MeshRelayStats
impl Clone for MeshRelayStats
Source§fn clone(&self) -> MeshRelayStats
fn clone(&self) -> MeshRelayStats
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for MeshRelayStats
impl Debug for MeshRelayStats
Source§impl Default for MeshRelayStats
impl Default for MeshRelayStats
Source§fn default() -> MeshRelayStats
fn default() -> MeshRelayStats
impl Eq for MeshRelayStats
Source§impl PartialEq for MeshRelayStats
impl PartialEq for MeshRelayStats
impl StructuralPartialEq for MeshRelayStats
Auto Trait Implementations§
impl Freeze for MeshRelayStats
impl RefUnwindSafe for MeshRelayStats
impl Send for MeshRelayStats
impl Sync for MeshRelayStats
impl Unpin for MeshRelayStats
impl UnsafeUnpin for MeshRelayStats
impl UnwindSafe for MeshRelayStats
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Declassify for T
impl<T> Declassify for T
type Declassified = T
fn declassify(self) -> T
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> ⓘ
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> ⓘ
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