pub enum ConnState {
Healthy,
Unhealthy {
since: Instant,
},
Reconnecting,
}Expand description
Connection health state.
Variants§
Healthy
Connection is working normally
Unhealthy
Connection has failed, tracking when it became unhealthy
Reconnecting
Connection is being replaced (reconnection in progress)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ConnState
impl RefUnwindSafe for ConnState
impl Send for ConnState
impl Sync for ConnState
impl Unpin for ConnState
impl UnwindSafe for ConnState
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