pub struct ConnectionEnd {
pub reason: TerminationReason,
pub error: Option<NetError>,
pub peer_close: Option<PeerClose>,
pub io_end: Option<IoEndKind>,
}Expand description
Termination details for one established connection, including the reason, peer close information, and low-level I/O outcome.
Fields§
§reason: TerminationReasonThe main reason why this connection ended.
error: Option<NetError>Error associated with termination, if one was recorded.
peer_close: Option<PeerClose>Peer close frame received during termination, if any.
io_end: Option<IoEndKind>Low-level I/O termination classification, if one was recorded.
Trait Implementations§
Source§impl Clone for ConnectionEnd
impl Clone for ConnectionEnd
Auto Trait Implementations§
impl !RefUnwindSafe for ConnectionEnd
impl !UnwindSafe for ConnectionEnd
impl Forget for ConnectionEnd
impl Freeze for ConnectionEnd
impl Move for ConnectionEnd
impl Send for ConnectionEnd
impl Sync for ConnectionEnd
impl Unpin for ConnectionEnd
impl UnsafeUnpin for ConnectionEnd
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