pub struct JetstreamMetrics {
pub events_received: u64,
pub events_dropped: u64,
pub errors: u64,
pub reconnects: u64,
pub last_event_at: u64,
pub current_backoff_ms: u64,
pub queue_depth: u64,
}Expand description
Metrics snapshot for the Jetstream consumer.
Fields§
§events_received: u64Total events received from the WebSocket.
events_dropped: u64Events dropped due to backpressure.
errors: u64Errors encountered during processing.
reconnects: u64Number of reconnections.
last_event_at: u64Timestamp of last event (unix ms).
current_backoff_ms: u64Current backoff duration in ms.
queue_depth: u64Current queue depth.
Trait Implementations§
Source§impl Clone for JetstreamMetrics
impl Clone for JetstreamMetrics
Source§fn clone(&self) -> JetstreamMetrics
fn clone(&self) -> JetstreamMetrics
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for JetstreamMetrics
impl RefUnwindSafe for JetstreamMetrics
impl Send for JetstreamMetrics
impl Sync for JetstreamMetrics
impl Unpin for JetstreamMetrics
impl UnsafeUnpin for JetstreamMetrics
impl UnwindSafe for JetstreamMetrics
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