1 2 3 4 5 6 7 8 9 10 11
#[allow(unused_imports)] pub(crate) use anyhow::{format_err, Context, Result}; pub(crate) use thiserror::Error; #[derive(Error, Debug)] pub enum AdaptiveError { #[error("unable to build adaptive backoff: {msg:?}")] BuilderFailure { msg: String }, #[error("missing base delay for adaptive backoff")] MissingBaseDelay, }