#[non_exhaustive]pub enum RecoveryError {
Connect(ConnectError),
Bootstrap(ReadError),
NoRuntime,
Worker(JoinError),
GenerationExhausted,
}Expand description
A fresh session could not be authenticated and prepared. The caller chooses when to retry.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Connect(ConnectError)
Local validation, pinned-channel authentication or session activation failed.
Bootstrap(ReadError)
The server identity, namespace array or read limits could not be established.
NoRuntime
No Tokio runtime is available to drive the handshake.
Worker(JoinError)
A connection worker terminated unexpectedly.
GenerationExhausted
All session generation numbers have been used.
Trait Implementations§
Source§impl Debug for RecoveryError
impl Debug for RecoveryError
Source§impl Display for RecoveryError
impl Display for RecoveryError
Source§impl Error for RecoveryError
impl Error for RecoveryError
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()
Source§impl From<ConnectError> for RecoveryError
impl From<ConnectError> for RecoveryError
Source§fn from(source: ConnectError) -> Self
fn from(source: ConnectError) -> Self
Converts to this type from the input type.
Source§impl From<JoinError> for RecoveryError
impl From<JoinError> for RecoveryError
Source§impl From<RecoveryError> for PublishError
impl From<RecoveryError> for PublishError
Source§fn from(source: RecoveryError) -> Self
fn from(source: RecoveryError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for RecoveryError
impl !UnwindSafe for RecoveryError
impl Forget for RecoveryError
impl Freeze for RecoveryError
impl Move for RecoveryError
impl Send for RecoveryError
impl Sync for RecoveryError
impl Unpin for RecoveryError
impl UnsafeUnpin for RecoveryError
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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