pub enum LoopState {
Permanent(Error),
Exhausted(Error),
Continue(Error),
}Expand description
The result of a loop control decision.
Variants§
Permanent(Error)
The error is non-retryable, stop the loop.
Exhausted(Error)
The error is retryable, but the policy is stopping the loop.
Loop control policies may stop the loop on retryable errors, for example, because the policy only allows a limited number of attempts.
Continue(Error)
The error was retryable, continue the loop.
Implementations§
Source§impl LoopState
impl LoopState
pub fn is_permanent(&self) -> bool
pub fn is_exhausted(&self) -> bool
pub fn is_continue(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LoopState
impl !RefUnwindSafe for LoopState
impl Send for LoopState
impl Sync for LoopState
impl Unpin for LoopState
impl !UnwindSafe for LoopState
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