pub enum StateChangeReason {
Timeout,
ConnectionEstablished,
ConnectionClosed,
MigrationComplete,
MigrationFailed,
NetworkError,
UserClosed,
}
Expand description
Reason for connection state change
Variants§
Timeout
Connection attempt timed out
ConnectionEstablished
Connection successfully established
ConnectionClosed
Connection was closed
MigrationComplete
Connection migration completed
MigrationFailed
Connection migration failed
NetworkError
Connection lost due to network error
UserClosed
Explicit close requested
Trait Implementations§
Source§impl Clone for StateChangeReason
impl Clone for StateChangeReason
Source§fn clone(&self) -> StateChangeReason
fn clone(&self) -> StateChangeReason
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 StateChangeReason
impl Debug for StateChangeReason
Source§impl PartialEq for StateChangeReason
impl PartialEq for StateChangeReason
impl Copy for StateChangeReason
impl Eq for StateChangeReason
impl StructuralPartialEq for StateChangeReason
Auto Trait Implementations§
impl Freeze for StateChangeReason
impl RefUnwindSafe for StateChangeReason
impl Send for StateChangeReason
impl Sync for StateChangeReason
impl Unpin for StateChangeReason
impl UnwindSafe for StateChangeReason
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.