pub struct QueuePressureRecord { /* private fields */ }Expand description
One queue pressure or capacity observation at a port boundary.
Implementations§
Source§impl QueuePressureRecord
impl QueuePressureRecord
Sourcepub const fn new(
context: Option<NodeContext>,
direction: QueuePortDirection,
port_id: PortId,
kind: QueuePressureBoundaryKind,
connected_edge_count: usize,
capacity: Option<usize>,
queued_count: Option<usize>,
) -> Self
pub const fn new( context: Option<NodeContext>, direction: QueuePortDirection, port_id: PortId, kind: QueuePressureBoundaryKind, connected_edge_count: usize, capacity: Option<usize>, queued_count: Option<usize>, ) -> Self
Create a queue pressure observation.
Sourcepub const fn context(&self) -> Option<&NodeContext>
pub const fn context(&self) -> Option<&NodeContext>
Runtime context for the node that observed queue pressure, when known.
Sourcepub const fn direction(&self) -> QueuePortDirection
pub const fn direction(&self) -> QueuePortDirection
Direction of the observed port.
Sourcepub const fn kind(&self) -> QueuePressureBoundaryKind
pub const fn kind(&self) -> QueuePressureBoundaryKind
Boundary kind observed.
Sourcepub const fn connected_edge_count(&self) -> usize
pub const fn connected_edge_count(&self) -> usize
Number of connected graph edges behind this declared port.
Sourcepub const fn capacity(&self) -> Option<usize>
pub const fn capacity(&self) -> Option<usize>
Total known bounded capacity across connected edges, when connected.
Sourcepub const fn queued_count(&self) -> Option<usize>
pub const fn queued_count(&self) -> Option<usize>
Total currently queued packets across connected input edges, when observable.
Trait Implementations§
Source§impl Clone for QueuePressureRecord
impl Clone for QueuePressureRecord
Source§fn clone(&self) -> QueuePressureRecord
fn clone(&self) -> QueuePressureRecord
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 QueuePressureRecord
impl Debug for QueuePressureRecord
Source§impl PartialEq for QueuePressureRecord
impl PartialEq for QueuePressureRecord
Source§fn eq(&self, other: &QueuePressureRecord) -> bool
fn eq(&self, other: &QueuePressureRecord) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for QueuePressureRecord
impl StructuralPartialEq for QueuePressureRecord
Auto Trait Implementations§
impl Freeze for QueuePressureRecord
impl RefUnwindSafe for QueuePressureRecord
impl Send for QueuePressureRecord
impl Sync for QueuePressureRecord
impl Unpin for QueuePressureRecord
impl UnsafeUnpin for QueuePressureRecord
impl UnwindSafe for QueuePressureRecord
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).