Enum retry_future::RetryPolicy
source · Expand description
Return type of inner future inside RetryFuture
Fail
variant means unrecoverable error
If future
propagates errors early by using ?
then
Retry
will contain error inside it.
If you want to provide some debug information about
why a Future
failed, you can construct error youself.
Variants§
Retry(Option<Error>)
Fail(E)
Unrecoverable error which means that the RetryFuture
Future
will immediately return with an error