#[non_exhaustive]pub struct MailboxStats {
pub held_frames: usize,
pub held_bytes: usize,
pub peak_frames: usize,
pub peak_bytes: usize,
pub backpressure_waits: u64,
pub refused_frames: u64,
pub ignored_frames: u64,
pub undelivered_errors: u64,
}Expand description
Counters describing one stream’s mailbox, readable at any time from the stream that owns it.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.held_frames: usizeItems held now.
held_bytes: usizePayload bytes held now.
peak_frames: usizeMost items ever held at once.
peak_bytes: usizeMost payload bytes ever held at once.
backpressure_waits: u64Times the reader found the mailbox full and stopped reading the socket until the consumer made room.
refused_frames: u64Items refused because they could never fit the mailbox.
ignored_frames: u64Frames of a kind this stream does not carry, read and counted rather than surfaced, so a stray frame cannot stop the frames behind it.
undelivered_errors: u64Reader errors (a server-ended subscription, a read or decode failure) that no consumer was left to receive.
Trait Implementations§
Source§impl Clone for MailboxStats
impl Clone for MailboxStats
impl Copy for MailboxStats
Source§impl Debug for MailboxStats
impl Debug for MailboxStats
Source§impl Default for MailboxStats
impl Default for MailboxStats
impl Eq for MailboxStats
Source§impl PartialEq for MailboxStats
impl PartialEq for MailboxStats
impl StructuralPartialEq for MailboxStats
Auto Trait Implementations§
impl Freeze for MailboxStats
impl RefUnwindSafe for MailboxStats
impl Send for MailboxStats
impl Sync for MailboxStats
impl Unpin for MailboxStats
impl UnsafeUnpin for MailboxStats
impl UnwindSafe for MailboxStats
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.