pub enum RetryResult<T> {
Success(T),
Err(Error),
Retry(u64),
}
Expand description
The result of attempting some operation via Retry::try
.
Variants§
Success(T)
The operation was successful.
The wrapped value is the return value of the callback function.
Err(Error)
The operation was an error, and it should not be tried again.
Retry(u64)
The operation failed, and should be tried again in the future.
The wrapped value is the number of milliseconds to wait before trying
again. The caller is responsible for waiting this long and then
calling Retry::try
again.
Auto Trait Implementations§
impl<T> Freeze for RetryResult<T>where
T: Freeze,
impl<T> RefUnwindSafe for RetryResult<T>where
T: RefUnwindSafe,
impl<T> Send for RetryResult<T>where
T: Send,
impl<T> Sync for RetryResult<T>where
T: Sync,
impl<T> Unpin for RetryResult<T>where
T: Unpin,
impl<T> UnwindSafe for RetryResult<T>where
T: UnwindSafe,
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
impl<T> ErasedDestructor for Twhere
T: 'static,
impl<T> MaybeSendSync for T
Layout§
Note: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.