pub struct SseStreamStats {
pub events_in: u64,
pub events_out: u64,
pub dropped: u64,
pub parse_errors: u64,
pub reconnects: u64,
pub last_event_id: Option<String>,
}Expand description
Snapshot of SSE stream diagnostics counters.
Fields§
§events_in: u64Number of SSE message frames received from the server.
events_out: u64Number of events successfully emitted to the subscription receiver.
dropped: u64Number of events dropped before delivery.
parse_errors: u64Number of JSON parse errors while decoding typed SSE events.
reconnects: u64Number of reconnect attempts after stream interruption.
last_event_id: Option<String>Last observed Last-Event-ID value, if any.
Trait Implementations§
Source§impl Clone for SseStreamStats
impl Clone for SseStreamStats
Source§fn clone(&self) -> SseStreamStats
fn clone(&self) -> SseStreamStats
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 moreSource§impl Debug for SseStreamStats
impl Debug for SseStreamStats
Source§impl Default for SseStreamStats
impl Default for SseStreamStats
Source§fn default() -> SseStreamStats
fn default() -> SseStreamStats
Returns the “default value” for a type. Read more
Source§impl PartialEq for SseStreamStats
impl PartialEq for SseStreamStats
impl Eq for SseStreamStats
impl StructuralPartialEq for SseStreamStats
Auto Trait Implementations§
impl Freeze for SseStreamStats
impl RefUnwindSafe for SseStreamStats
impl Send for SseStreamStats
impl Sync for SseStreamStats
impl Unpin for SseStreamStats
impl UnwindSafe for SseStreamStats
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