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 · 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 Copy 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 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