pub enum ConnectionError {
Failed(String),
Lost(String),
Timeout(String),
AuthenticationFailed(String),
NetworkUnreachable(String),
Refused(String),
Unhealthy {
consecutive_errors: u32,
last_error: String,
},
}Expand description
Connection-related error types
Variants§
Failed(String)
Failed to establish initial connection
Lost(String)
Connection was lost/reset
Timeout(String)
Connection timed out
AuthenticationFailed(String)
Authentication failed
NetworkUnreachable(String)
Network unreachable
Refused(String)
Connection refused by server
Unhealthy
Too many consecutive errors indicating unhealthy connection
Trait Implementations§
Source§impl Debug for ConnectionError
impl Debug for ConnectionError
Auto Trait Implementations§
impl Freeze for ConnectionError
impl RefUnwindSafe for ConnectionError
impl Send for ConnectionError
impl Sync for ConnectionError
impl Unpin for ConnectionError
impl UnsafeUnpin for ConnectionError
impl UnwindSafe for ConnectionError
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