pub enum ConnectionEndReason {
Uncertain,
IdleTimeout,
LocalEndpoint(EndpointCloseReason),
PeerEndpoint(EndpointCloseReason),
LocalApplication(u64),
PeerApplication(u64),
}
Expand description
Reason the connection has ended / is ending
Variants§
Uncertain
Not sure of the reason
IdleTimeout
Idle Timeout
LocalEndpoint(EndpointCloseReason)
Local Endpoint Error
PeerEndpoint(EndpointCloseReason)
Peer Endpoint Error
LocalApplication(u64)
Local Application Error
PeerApplication(u64)
Peer Application Error
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for ConnectionEndReason
impl Send for ConnectionEndReason
impl Sync for ConnectionEndReason
impl Unpin for ConnectionEndReason
impl UnwindSafe for ConnectionEndReason
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