pub struct ChannelPressureSnapshot {
pub channel_id: String,
pub pressure_score: f64,
pub consumers: Vec<ConsumerPressureSnapshot>,
}Expand description
Observable pressure snapshot for a channel and all tracked consumers.
Fields§
§channel_id: StringChannel identifier whose pressure was measured.
pressure_score: f64Configurable aggregate pressure score clamped to [0.0, 1.0].
consumers: Vec<ConsumerPressureSnapshot>Per-consumer metric snapshots contributing to the pressure score.
Implementations§
Source§impl ChannelPressureSnapshot
impl ChannelPressureSnapshot
Sourcepub fn consumer_count(&self) -> usize
pub fn consumer_count(&self) -> usize
Returns the number of consumers currently tracked for the channel.
Trait Implementations§
Source§impl Clone for ChannelPressureSnapshot
impl Clone for ChannelPressureSnapshot
Source§fn clone(&self) -> ChannelPressureSnapshot
fn clone(&self) -> ChannelPressureSnapshot
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 moreSource§impl Debug for ChannelPressureSnapshot
impl Debug for ChannelPressureSnapshot
Source§impl PartialEq for ChannelPressureSnapshot
impl PartialEq for ChannelPressureSnapshot
Source§fn eq(&self, other: &ChannelPressureSnapshot) -> bool
fn eq(&self, other: &ChannelPressureSnapshot) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ChannelPressureSnapshot
Auto Trait Implementations§
impl Freeze for ChannelPressureSnapshot
impl RefUnwindSafe for ChannelPressureSnapshot
impl Send for ChannelPressureSnapshot
impl Sync for ChannelPressureSnapshot
impl Unpin for ChannelPressureSnapshot
impl UnsafeUnpin for ChannelPressureSnapshot
impl UnwindSafe for ChannelPressureSnapshot
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