//! The error type the resilience layer itself produces.
use Duration;
/// A failure surfaced by the resilience layer wrapping a caller's operation.
///
/// [`ResilienceError::Inner`] carries the caller's own error `E` unchanged
/// (after retries are exhausted). The other variants are produced by the guard
/// itself and the caller is expected to map them into its domain error enum.