pub enum ReconnectionError {
ConnectionFailed(String),
MaxAttemptsReached,
Timeout,
ClientLost,
SubscriptionError(String),
}
Expand description
Errors that can occur during reconnection attempts
Variants§
ConnectionFailed(String)
Connection attempt failed with the given error message
MaxAttemptsReached
Maximum number of reconnection attempts has been reached
Timeout
Reconnection attempt timed out
ClientLost
The client reference was lost during reconnection
SubscriptionError(String)
A subscription-related error occurred during reconnection
Trait Implementations§
Source§impl Debug for ReconnectionError
impl Debug for ReconnectionError
Source§impl Display for ReconnectionError
impl Display for ReconnectionError
Source§impl Error for ReconnectionError
impl Error for ReconnectionError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for ReconnectionError
impl RefUnwindSafe for ReconnectionError
impl Send for ReconnectionError
impl Sync for ReconnectionError
impl Unpin for ReconnectionError
impl UnwindSafe for ReconnectionError
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