pub struct TransientError { /* private fields */ }
Expand description
An error that is expected to be resolved by retrying the operation.
See OperationError
for more information.
Implementations§
Source§impl TransientError
impl TransientError
pub fn new( err: impl Error + Send + Sync + 'static, retry_strategy: RetryStrategy, fatal_strategy: FatalStrategy, ) -> Self
pub fn from_anyhow( err: Error, retry_strategy: RetryStrategy, fatal_strategy: FatalStrategy, ) -> Self
pub fn from_str( err: &str, retry_strategy: RetryStrategy, fatal_strategy: FatalStrategy, ) -> Self
Trait Implementations§
Source§impl Debug for TransientError
impl Debug for TransientError
Source§impl<E> From<E> for TransientError
impl<E> From<E> for TransientError
Source§impl From<TransientError> for OperationError
impl From<TransientError> for OperationError
Source§fn from(value: TransientError) -> Self
fn from(value: TransientError) -> Self
Converts to this type from the input type.
Source§impl<T> From<TransientError> for Result<T>
impl<T> From<TransientError> for Result<T>
Source§fn from(value: TransientError) -> Self
fn from(value: TransientError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TransientError
impl RefUnwindSafe for TransientError
impl Send for TransientError
impl Sync for TransientError
impl Unpin for TransientError
impl UnwindSafe for TransientError
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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