#[non_exhaustive]pub enum RetryConfigError {
Multiplier(f64),
Jitter(f64),
ZeroDelay,
InitialExceedsMax {
initial: Duration,
max: Duration,
},
}Expand description
Why a RetryConfig was rejected.
Each message names the offending key relative to the sink’s retry
section; connectors prepend their own config path when converting it into
their ConfigError.
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.
Multiplier(f64)
multiplier is not a finite number in [1.0, 1e9]. Below 1.0 the
delay shrinks instead of backing off.
Jitter(f64)
jitter is not a finite fraction in [0.0, 1.0].
ZeroDelay
initial or max is zero, leaving no delay to sleep at all.
InitialExceedsMax
initial is larger than the ceiling it grows towards.
Trait Implementations§
Source§impl Clone for RetryConfigError
impl Clone for RetryConfigError
Source§fn clone(&self) -> RetryConfigError
fn clone(&self) -> RetryConfigError
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 moreSource§impl Debug for RetryConfigError
impl Debug for RetryConfigError
Source§impl Display for RetryConfigError
impl Display for RetryConfigError
Source§impl Error for RetryConfigError
impl Error for RetryConfigError
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 RetryConfigError
impl PartialEq for RetryConfigError
impl StructuralPartialEq for RetryConfigError
Auto Trait Implementations§
impl Freeze for RetryConfigError
impl RefUnwindSafe for RetryConfigError
impl Send for RetryConfigError
impl Sync for RetryConfigError
impl Unpin for RetryConfigError
impl UnsafeUnpin for RetryConfigError
impl UnwindSafe for RetryConfigError
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