pub struct StreamInfo {Show 13 fields
pub id: StreamId,
pub tag: u32,
pub origin: StreamOrigin,
pub state: StreamState,
pub local: SocketAddr,
pub requested_local: SocketAddr,
pub remote: SocketAddr,
pub framing: Framing,
pub messages_sent: u64,
pub messages_received: u64,
pub messages_dropped: u64,
pub in_flight: usize,
pub queued: usize,
}Expand description
A connection, as StreamTable::info describes it.
Fields§
§id: StreamIdIts id.
tag: u32The owner’s tag, given when it was opened or when its listener was.
origin: StreamOriginHow it came to be.
state: StreamStateIts state.
local: SocketAddrIts local address: the requested one until it is established, then the bound one.
requested_local: SocketAddrThe local address it was asked for (port 0: any).
remote: SocketAddrThe peer’s address.
framing: FramingIts framing.
messages_sent: u64Messages sent and received, and messages dropped by back-pressure.
messages_received: u64Messages received.
messages_dropped: u64Messages dropped because the queue was full.
in_flight: usizeBytes handed to the driver and not yet reported written.
queued: usizeBytes queued in the engine.
Trait Implementations§
Source§impl Clone for StreamInfo
impl Clone for StreamInfo
impl Copy for StreamInfo
Source§impl Debug for StreamInfo
impl Debug for StreamInfo
impl Eq for StreamInfo
Source§impl PartialEq for StreamInfo
impl PartialEq for StreamInfo
impl StructuralPartialEq for StreamInfo
Auto Trait Implementations§
impl Forget for StreamInfo
impl Freeze for StreamInfo
impl Move for StreamInfo
impl RefUnwindSafe for StreamInfo
impl Send for StreamInfo
impl Sync for StreamInfo
impl Unpin for StreamInfo
impl UnsafeUnpin for StreamInfo
impl UnwindSafe for StreamInfo
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