#[non_exhaustive]pub enum ModelRetryPolicyError {
ZeroMaxAttempts,
ZeroMultiplier,
InvalidBackoffRange,
}Expand description
Invalid retry-policy configuration.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ZeroMaxAttempts
A policy must include the initial attempt.
ZeroMultiplier
Exponential growth cannot use a zero multiplier.
InvalidBackoffRange
Maximum delay cannot be below the initial delay.
Trait Implementations§
Source§impl Clone for ModelRetryPolicyError
impl Clone for ModelRetryPolicyError
Source§fn clone(&self) -> ModelRetryPolicyError
fn clone(&self) -> ModelRetryPolicyError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ModelRetryPolicyError
Source§impl Debug for ModelRetryPolicyError
impl Debug for ModelRetryPolicyError
Source§impl Display for ModelRetryPolicyError
impl Display for ModelRetryPolicyError
impl Eq for ModelRetryPolicyError
Source§impl Error for ModelRetryPolicyError
impl Error for ModelRetryPolicyError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for ModelRetryPolicyError
impl PartialEq for ModelRetryPolicyError
impl StructuralPartialEq for ModelRetryPolicyError
Auto Trait Implementations§
impl Freeze for ModelRetryPolicyError
impl RefUnwindSafe for ModelRetryPolicyError
impl Send for ModelRetryPolicyError
impl Sync for ModelRetryPolicyError
impl Unpin for ModelRetryPolicyError
impl UnsafeUnpin for ModelRetryPolicyError
impl UnwindSafe for ModelRetryPolicyError
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