Struct pravega_client_retry::retry_result::RetryError
source · [−]Expand description
An error that the Retry function would give.
Fields
error: E
The error returned by the operation on the last try.
total_delay: Duration
The duration spent waiting between retries of the operation.
tries: u64
The total number of times the operation was tried.
Trait Implementations
sourceimpl<E: Debug + Display> Debug for RetryError<E>
impl<E: Debug + Display> Debug for RetryError<E>
sourceimpl<E: Display> Display for RetryError<E>
impl<E: Display> Display for RetryError<E>
sourceimpl<E: Display> Error for RetryError<E>where
Self: Debug + Display,
impl<E: Display> Error for RetryError<E>where
Self: Debug + Display,
sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
sourcefn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0:
replaced by Error::source, which can support downcasting
sourceimpl<E: Display> ErrorCompat for RetryError<E>
impl<E: Display> ErrorCompat for RetryError<E>
sourceimpl<E: PartialEq + Display> PartialEq<RetryError<E>> for RetryError<E>
impl<E: PartialEq + Display> PartialEq<RetryError<E>> for RetryError<E>
sourcefn eq(&self, other: &RetryError<E>) -> bool
fn eq(&self, other: &RetryError<E>) -> bool
impl<E: Eq + Display> Eq for RetryError<E>
impl<E: Display> StructuralEq for RetryError<E>
impl<E: Display> StructuralPartialEq for RetryError<E>
Auto Trait Implementations
impl<E> RefUnwindSafe for RetryError<E>where
E: RefUnwindSafe,
impl<E> Send for RetryError<E>where
E: Send,
impl<E> Sync for RetryError<E>where
E: Sync,
impl<E> Unpin for RetryError<E>where
E: Unpin,
impl<E> UnwindSafe for RetryError<E>where
E: UnwindSafe,
Blanket Implementations
sourceimpl<T> AsErrorSource for Twhere
T: 'static + Error,
impl<T> AsErrorSource for Twhere
T: 'static + Error,
sourcefn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
to benefit from Rust’s automatic dereferencing of method
receivers. Read more
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more