pub enum ReconnectState {
Connected,
WaitingBackoff,
ReadyToReconnect,
Reconnecting,
GaveUp,
}Expand description
State of the reconnect manager.
Variants§
Connected
Connection is up and healthy.
WaitingBackoff
Waiting for backoff interval before next attempt.
ReadyToReconnect
Ready to attempt reconnect right now.
Reconnecting
Reconnect attempt in progress.
GaveUp
Gave up — max attempts reached.
Trait Implementations§
Source§impl Clone for ReconnectState
impl Clone for ReconnectState
Source§fn clone(&self) -> ReconnectState
fn clone(&self) -> ReconnectState
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 ReconnectState
impl Debug for ReconnectState
Source§impl PartialEq for ReconnectState
impl PartialEq for ReconnectState
impl StructuralPartialEq for ReconnectState
Auto Trait Implementations§
impl Freeze for ReconnectState
impl RefUnwindSafe for ReconnectState
impl Send for ReconnectState
impl Sync for ReconnectState
impl Unpin for ReconnectState
impl UnsafeUnpin for ReconnectState
impl UnwindSafe for ReconnectState
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