pub struct BatcherStats {
pub sent: AtomicUsize,
pub dropped: AtomicUsize,
pub failed: AtomicUsize,
}Expand description
Shared statistics counted across the batcher’s lifetime.
Fields§
§sent: AtomicUsizeItems successfully sent to the flush callback.
dropped: AtomicUsizeItems dropped because the queue was full.
failed: AtomicUsizeFlush callbacks that returned an error.
Implementations§
Trait Implementations§
Source§impl Debug for BatcherStats
impl Debug for BatcherStats
Source§impl Default for BatcherStats
impl Default for BatcherStats
Source§fn default() -> BatcherStats
fn default() -> BatcherStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for BatcherStats
impl RefUnwindSafe for BatcherStats
impl Send for BatcherStats
impl Sync for BatcherStats
impl Unpin for BatcherStats
impl UnsafeUnpin for BatcherStats
impl UnwindSafe for BatcherStats
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