Skip to main content

InletHealth

Struct InletHealth 

Source
pub struct InletHealth {
Show 16 fields pub latency: Option<f64>, pub lost: Option<u64>, pub dropped: u64, pub resent: Option<u64>, pub clock_uncertainty: Option<f64>, pub clock_drift: Option<f64>, pub recoveries: u64, pub connected: bool, pub on_udp: bool, pub on_shm: bool, pub compressed: bool, pub encrypted: bool, pub compression_ratio: Option<f64>, pub buffered: usize, pub buffer_capacity: usize, pub gap_count: usize,
}
Expand description

Stream health snapshots, gap descriptors, and live metadata (docs/health.md, docs/extensions.md). Snapshot of the health of one crate::Inlet.

Fields§

§latency: Option<f64>

Measured arrival latency of the most recent sample, in seconds (arrival_local - (sample_timestamp + clock_offset)), or None before the first sample arrives or before clock sync completes.

§lost: Option<u64>

Samples that never reached this inlet (seq/1), or None when the source does not use seq/1.

§dropped: u64

Samples dropped by this inlet’s local buffer because the application pulled too slowly.

§resent: Option<u64>

Samples delivered from the outlet’s resume/1 history after a dropout, or None when resume/1 is not active.

§clock_uncertainty: Option<f64>

Round-trip time of the latest clock offset estimate, in seconds, or None before the first burst completes.

§clock_drift: Option<f64>

Estimated relative clock drift (d(offset)/d(t_local) in s/s) from the opt-in drift model (docs/roadmap.md, step 17), or None before the first burst completes.

§recoveries: u64

Number of times the inlet rebuilt its connection.

§connected: bool

True while the inlet reader is attached to a source.

§on_udp: bool

True while samples arrive over UDP (dgram/1).

§on_shm: bool

True while samples arrive through shared memory (shm/1).

§compressed: bool

True while wire compression (comp/1) is active on this connection.

§encrypted: bool

True while negotiated encryption (enc/1) is active on this connection.

§compression_ratio: Option<f64>

Ratio wire_bytes / raw_bytes observed on this connection when comp/1 is active, or None when uncompressed or before data arrives.

§buffered: usize

Number of samples currently waiting in the inlet buffer.

§buffer_capacity: usize

Capacity of the inlet buffer, in samples.

§gap_count: usize

Number of gaps currently recorded on this inlet.

Trait Implementations§

Source§

impl Clone for InletHealth

Source§

fn clone(&self) -> InletHealth

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for InletHealth

Source§

impl Debug for InletHealth

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl PartialEq for InletHealth

Source§

fn eq(&self, other: &InletHealth) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for InletHealth

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.