Skip to main content

RealtimePreflight

Struct RealtimePreflight 

Source
pub struct RealtimePreflight {
Show 15 fields pub command_queue_depth: usize, pub command_queue_capacity: usize, pub observe_queue_depth: usize, pub observe_queue_capacity: usize, pub has_snapshot: bool, pub latest_snapshot_tick_id: u64, pub snapshot_age_ticks: u64, pub ring_capacity: usize, pub ring_len: usize, pub ring_write_pos: u64, pub ring_oldest_retained_pos: Option<u64>, pub ring_eviction_events: u64, pub ring_stale_read_events: u64, pub ring_skew_retry_events: u64, pub tick_thread_stopped: bool,
}
Expand description

Non-blocking visibility snapshot for realtime health checks.

Fields§

§command_queue_depth: usize

Pending command batches in the ingress channel.

§command_queue_capacity: usize

Ingress channel capacity (0 if unavailable/shut down).

§observe_queue_depth: usize

Pending observation tasks in the egress task channel.

§observe_queue_capacity: usize

Egress task channel capacity (0 if unavailable/shut down).

§has_snapshot: bool

Whether a snapshot is currently available to serve observes.

§latest_snapshot_tick_id: u64

Tick ID of the latest snapshot (0 when unavailable).

§snapshot_age_ticks: u64

Snapshot age in ticks relative to the current epoch.

§ring_capacity: usize

Ring retention capacity (maximum number of retained snapshots).

§ring_len: usize

Current retained snapshot count.

§ring_write_pos: u64

Current monotonic ring write position.

§ring_oldest_retained_pos: Option<u64>

Oldest retained write position (None when ring is empty).

§ring_eviction_events: u64

Cumulative count of evictions from ring overwrite.

§ring_stale_read_events: u64

Cumulative count of stale/not-yet-written position reads.

§ring_skew_retry_events: u64

Cumulative count of overwrite-skew retry events.

§tick_thread_stopped: bool

Whether the tick thread has already stopped.

Trait Implementations§

Source§

impl Clone for RealtimePreflight

Source§

fn clone(&self) -> RealtimePreflight

Returns a duplicate of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for RealtimePreflight

Source§

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

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

impl PartialEq for RealtimePreflight

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for RealtimePreflight

Source§

impl Eq for RealtimePreflight

Source§

impl StructuralPartialEq for RealtimePreflight

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<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
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 = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.