pub type Result<T> = std::result::Result<T, Error>;
#[allow(missing_docs)]
#[derive(Debug, thiserror::Error)]
pub enum Error {
#[cfg(feature = "reqwest")]
#[error(transparent)]
Reqwest(#[from] reqwest::Error),
#[error(
"[reqwew] non-retriable request; this typically occurs when attempting to retry a stream body request"
)]
NonRetriableRequest,
#[error("[reqwew] max retries exceeded after {0} attempts")]
ExceededMaxRetries(u32),
}