pub enum ReconnectionStatus {
Ready,
Waiting {
remaining: Duration,
},
Exhausted {
attempts: u32,
},
NotTracked,
}Expand description
Result of checking if a peer should be reconnected
Variants§
Ready
Ready to attempt reconnection
Waiting
Waiting for backoff delay to expire
Exhausted
Maximum attempts exceeded, peer is abandoned
NotTracked
Peer is not being tracked for reconnection
Trait Implementations§
Source§impl Clone for ReconnectionStatus
impl Clone for ReconnectionStatus
Source§fn clone(&self) -> ReconnectionStatus
fn clone(&self) -> ReconnectionStatus
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 ReconnectionStatus
impl Debug for ReconnectionStatus
Source§impl PartialEq for ReconnectionStatus
impl PartialEq for ReconnectionStatus
impl Eq for ReconnectionStatus
impl StructuralPartialEq for ReconnectionStatus
Auto Trait Implementations§
impl Freeze for ReconnectionStatus
impl RefUnwindSafe for ReconnectionStatus
impl Send for ReconnectionStatus
impl Sync for ReconnectionStatus
impl Unpin for ReconnectionStatus
impl UnsafeUnpin for ReconnectionStatus
impl UnwindSafe for ReconnectionStatus
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.