pub enum ConnectionPhase {
Connected,
Active,
AliveCheckPending {
sent_at: Instant,
},
Closing,
}Expand description
The life-cycle phase of a TCP connection.
Variants§
Connected
TCP connected, waiting for RoutingActivationRequest.
Active
Routing activation complete - diagnostic messages permitted.
AliveCheckPending
Gateway sent an AliveCheckRequest, waiting for response.
Closing
Connection is being torn down.
Trait Implementations§
Source§impl Clone for ConnectionPhase
impl Clone for ConnectionPhase
Source§fn clone(&self) -> ConnectionPhase
fn clone(&self) -> ConnectionPhase
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ConnectionPhase
impl Debug for ConnectionPhase
Source§impl PartialEq for ConnectionPhase
impl PartialEq for ConnectionPhase
impl Eq for ConnectionPhase
impl StructuralPartialEq for ConnectionPhase
Auto Trait Implementations§
impl Freeze for ConnectionPhase
impl RefUnwindSafe for ConnectionPhase
impl Send for ConnectionPhase
impl Sync for ConnectionPhase
impl Unpin for ConnectionPhase
impl UnsafeUnpin for ConnectionPhase
impl UnwindSafe for ConnectionPhase
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