request_shadow/error.rs
1//! Crate-wide error type.
2
3use thiserror::Error;
4
5/// Anything that can go wrong inside the crate.
6#[derive(Debug, Error)]
7pub enum ShadowError {
8 /// The wrapped backend returned an error.
9 #[error("backend failure: {0}")]
10 Backend(String),
11
12 /// The shadow leg timed out. The primary call is unaffected.
13 #[error("shadow leg timed out")]
14 ShadowTimeout,
15}