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 (const: unstable) · 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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