pub struct Stats {
pub subscribers: usize,
pub listener_position: Position,
pub delivered: u64,
pub listener_queries: u64,
pub listener_reconnects: u64,
pub catch_ups_from_memory: u64,
pub catch_ups_from_database: u64,
pub lagged: u64,
pub out_of_order: u64,
}Expand description
A snapshot of Bus::stats.
Fields§
§subscribers: usizeSubscriptions alive in this process.
listener_position: PositionThe last position the listener read.
delivered: u64Messages the listener read and handed to this process’s subscribers.
listener_queries: u64Queries the listener ran: backlog reads and waiting-message checks.
listener_reconnects: u64Times the listener’s connection was established again.
catch_ups_from_memory: u64Subscription catch-ups answered from the recent ring.
catch_ups_from_database: u64Subscription catch-ups that read the backlog table.
lagged: u64Times a subscriber fell behind the live feed and caught up instead.
out_of_order: u64Messages a subscription skipped because they came out of order. Always 0 unless something is wrong; logged as an error when not.
Trait Implementations§
impl StructuralPartialEq for Stats
Auto Trait Implementations§
impl Freeze for Stats
impl RefUnwindSafe for Stats
impl Send for Stats
impl Sync for Stats
impl Unpin for Stats
impl UnsafeUnpin for Stats
impl UnwindSafe for Stats
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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