#[non_exhaustive]pub struct ConnectionSnapshot {Show 15 fields
pub endpoint: EndpointId,
pub lane: LaneId,
pub connection: ConnectionId,
pub epoch: ConnectionEpoch,
pub phase: ConnectionPhase,
pub gate: AdmissionGate,
pub close_reason: Option<CloseReason>,
pub reserved_permits: usize,
pub owned_operations: usize,
pub active_operations: usize,
pub terminal_slots: usize,
pub active_match_keys: usize,
pub retained_bytes: RetainedBytes,
pub buffered_write_frames: usize,
pub buffered_write_retained_bytes: RetainedBytes,
}Expand description
Immutable, data-only state for observation outside the owner path.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.endpoint: EndpointIdLogical endpoint.
lane: LaneIdOpaque traffic lane.
connection: ConnectionIdPhysical connection slot.
epoch: ConnectionEpochExact physical lifetime.
phase: ConnectionPhasePhysical lifecycle phase.
gate: AdmissionGateMechanical admission gate.
close_reason: Option<CloseReason>Mechanical reason retained once this epoch begins closing.
reserved_permits: usizeAffine reservations not yet committed or dropped.
owned_operations: usizeAccepted and reserved operation capacity currently owned.
active_operations: usizeAccepted operations still capable of producing an effect.
terminal_slots: usizeFIFO entries retaining a terminal observation tombstone.
active_match_keys: usizeMatch keys unavailable in the current epoch.
retained_bytes: RetainedBytesSemantic bytes retained by permits and active operations.
buffered_write_frames: usizeFrames retained by reservations or the write owner.
buffered_write_retained_bytes: RetainedBytesBytes retained by reservations or the write owner.
Trait Implementations§
Source§impl Clone for ConnectionSnapshot
impl Clone for ConnectionSnapshot
impl Copy for ConnectionSnapshot
Source§impl Debug for ConnectionSnapshot
impl Debug for ConnectionSnapshot
impl Eq for ConnectionSnapshot
Source§impl PartialEq for ConnectionSnapshot
impl PartialEq for ConnectionSnapshot
impl StructuralPartialEq for ConnectionSnapshot
Auto Trait Implementations§
impl Freeze for ConnectionSnapshot
impl RefUnwindSafe for ConnectionSnapshot
impl Send for ConnectionSnapshot
impl Sync for ConnectionSnapshot
impl Unpin for ConnectionSnapshot
impl UnsafeUnpin for ConnectionSnapshot
impl UnwindSafe for ConnectionSnapshot
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