#[non_exhaustive]pub struct Presence {Show 20 fields
pub sessions_refused: Refusals,
pub sessions_failed: Failures,
pub requests: u64,
pub sessions_started: u64,
pub sessions_ended: u64,
pub sent_bytes: u64,
pub received_bytes: u64,
pub announces_peak: u64,
pub subscriptions_peak: u64,
pub wire_tx: u64,
pub wire_rx: u64,
pub wire_lost: u64,
pub credit_stalls: u64,
pub credit_stalled_us: u64,
pub credit_held_readers_us: u64,
pub credit_held_evicted_us: u64,
pub cwnd_blocked_us: u64,
pub pacing_blocked_us: u64,
pub routes_refused: u64,
pub routes: Routes,
}Expand description
Request admissions and connected-session presence for a label on a tier, or their sum.
The session counters are cumulative connects and disconnects, so
sessions_started - sessions_ended is the current live session count. The peaks
show how close one session came to the bounds on what it holds.
Like Traffic, this is also the wire shape of one entry on a published
sessions, presence, or totals track.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.sessions_refused: RefusalsCumulative sessions refused before admission, by reason.
sessions_failed: FailuresCumulative admitted sessions ending abnormally, by kind.
requests: u64Cumulative request/response exchanges admitted.
sessions_started: u64Cumulative sessions connected.
sessions_ended: u64Cumulative sessions disconnected.
sent_bytes: u64Cumulative payload bytes sent by sessions under this label.
received_bytes: u64Cumulative payload bytes received by sessions under this label.
announces_peak: u64The most broadcasts (moq-transport: namespaces) any one session has held announced to us at once.
subscriptions_peak: u64The most subscriptions any one session has held on our broadcasts at once.
wire_tx: u64Cumulative transport bytes sent, including transport framing and retransmits.
wire_rx: u64Cumulative transport bytes received, including transport framing.
wire_lost: u64Cumulative sent transport bytes declared lost, counted where the loss is declared, so a
retagged session’s loss may land on a row whose wire_tx never held those bytes.
credit_stalls: u64Cumulative times a connection’s write blocked with all the peer’s connection-level
credit (MAX_DATA) spent.
credit_stalled_us: u64Cumulative microseconds connections spent blocked on the peer’s connection-level credit.
credit_held_readers_us: u64Cumulative microseconds the peer had a connection’s whole receive window spent while a reader had data it had not looked at yet: readers behind holding the window.
credit_held_evicted_us: u64Cumulative microseconds the peer had a connection’s whole receive window spent while an evicted reader had not stopped its stream.
cwnd_blocked_us: u64Cumulative microseconds connections had data ready to send held back by a full congestion window.
pacing_blocked_us: u64Cumulative microseconds connections had data ready to send held back by the pacer.
routes_refused: u64Cumulative routes and claims a lite-07 session forwarded that this
node refused, withdrawing each and keeping the session: the total of
Routes::refused.
routes: RoutesWhat the label’s lite-07 sessions did on the route layer.
Implementations§
Source§impl Presence
impl Presence
Sourcepub const WIRE_FIELDS: usize = 9
pub const WIRE_FIELDS: usize = 9
How many fields Self::wire_mut returns.
Sourcepub fn wire_mut(&mut self) -> [&mut u64; 9]
pub fn wire_mut(&mut self) -> [&mut u64; 9]
The fields summed from transports’ crate::transport::Wire counters, in a fixed order.
Trait Implementations§
impl Copy for Presence
Source§impl<'de> Deserialize<'de> for Presence
impl<'de> Deserialize<'de> for Presence
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for Presence
impl StructuralPartialEq for Presence
Auto Trait Implementations§
impl Freeze for Presence
impl RefUnwindSafe for Presence
impl Send for Presence
impl Sync for Presence
impl Unpin for Presence
impl UnsafeUnpin for Presence
impl UnwindSafe for Presence
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.