pub enum StreamInspectorStatus {
Live,
Ended,
Cancelled,
BufferOverflow,
Disconnected,
Reconnecting,
RefusedProfile,
Faulted,
}Expand description
Lifecycle classification of an observed stream.
Reported by StreamInspectorSnapshot to describe whether a stream is
still flowing, has finished, or has entered a degraded or terminal
condition. Each variant carries a stable wire label and qualified symbol.
Variants§
Live
Stream is open and actively delivering items.
Ended
Stream closed normally after delivering its items.
Cancelled
Stream was cancelled by a consumer or producer.
BufferOverflow
Stream’s bounded buffer dropped, rejected, or overflowed items.
Disconnected
Stream transport is currently disconnected.
Reconnecting
Stream transport is attempting to re-establish a connection.
RefusedProfile
Stream’s transport profile was refused as unsupported.
Faulted
Stream has been forced into a fault condition for inspection.
Implementations§
Source§impl StreamInspectorStatus
impl StreamInspectorStatus
Sourcepub fn wire_label(self) -> &'static str
pub fn wire_label(self) -> &'static str
Returns the stable lowercase wire label for this status.
Sourcepub fn from_stats(stats: &StreamStats, done: bool) -> Self
pub fn from_stats(stats: &StreamStats, done: bool) -> Self
Classifies a stream’s status from its runtime stats.
Precedence is cancellation, then buffer loss (any dropped, overflowed,
or rejected items), then end-of-stream (done or closed), otherwise
StreamInspectorStatus::Live.
Trait Implementations§
Source§impl Clone for StreamInspectorStatus
impl Clone for StreamInspectorStatus
Source§fn clone(&self) -> StreamInspectorStatus
fn clone(&self) -> StreamInspectorStatus
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for StreamInspectorStatus
Source§impl Debug for StreamInspectorStatus
impl Debug for StreamInspectorStatus
impl Eq for StreamInspectorStatus
Source§impl PartialEq for StreamInspectorStatus
impl PartialEq for StreamInspectorStatus
Source§fn eq(&self, other: &StreamInspectorStatus) -> bool
fn eq(&self, other: &StreamInspectorStatus) -> bool
self and other values to be equal, and is used by ==.