pub enum BackoffError {
MaxRetriesExceeded,
InvalidConfig(String),
RetryFailed(String),
}
Variants§
Trait Implementations§
Source§impl Debug for BackoffError
impl Debug for BackoffError
Source§impl Display for BackoffError
impl Display for BackoffError
Source§impl Error for BackoffError
impl Error for BackoffError
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()
Source§impl From<BackoffError> for ConnectionError
impl From<BackoffError> for ConnectionError
Source§fn from(source: BackoffError) -> Self
fn from(source: BackoffError) -> Self
Converts to this type from the input type.
Source§impl From<BackoffError> for RelayError
impl From<BackoffError> for RelayError
Source§fn from(err: BackoffError) -> Self
fn from(err: BackoffError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BackoffError
impl RefUnwindSafe for BackoffError
impl Send for BackoffError
impl Sync for BackoffError
impl Unpin for BackoffError
impl UnwindSafe for BackoffError
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