pub enum ConnectionPhase {
Handshaking,
Established,
Closing,
Closed,
Failed,
}Available on crate feature
transport only.Expand description
Connection lifecycle state.
Variants§
Handshaking
Handshake in progress.
Established
Connection established, data transfer active.
Closing
Connection closing gracefully.
Closed
Connection closed.
Failed
Connection failed (timeout, too many retransmits, etc).
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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ConnectionPhase
Source§impl Debug for ConnectionPhase
impl Debug for ConnectionPhase
impl Eq for ConnectionPhase
Source§impl PartialEq for ConnectionPhase
impl PartialEq for ConnectionPhase
Source§fn eq(&self, other: &ConnectionPhase) -> bool
fn eq(&self, other: &ConnectionPhase) -> bool
Tests for
self and other values to be equal, and is used by ==.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