Struct pravega_client_retry::retry_result::RetryError
source · pub struct RetryError<E: Display> {
pub error: E,
pub total_delay: Duration,
pub tries: u64,
}
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§
source§impl<E: Display> Display for RetryError<E>
impl<E: Display> Display for RetryError<E>
source§impl<E: Display> Error for RetryError<E>where
Self: Debug + Display,
impl<E: Display> Error for RetryError<E>where Self: Debug + Display,
source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§impl<E: Display> ErrorCompat for RetryError<E>
impl<E: Display> ErrorCompat for RetryError<E>
source§impl<E: PartialEq + Display> PartialEq<RetryError<E>> for RetryError<E>
impl<E: PartialEq + Display> PartialEq<RetryError<E>> for RetryError<E>
source§fn eq(&self, other: &RetryError<E>) -> bool
fn eq(&self, other: &RetryError<E>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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§
source§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere T: Error + 'static,
source§fn 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.
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