volo_http/error/mod.rs
1//! Generic error types
2
3use std::error::Error;
4
5#[cfg(feature = "client")]
6pub mod client;
7#[cfg(feature = "client")]
8pub use self::client::ClientError;
9
10#[cfg(feature = "server")]
11pub mod server;
12#[cfg(feature = "server")]
13pub use self::server::ExtractBodyError;
14
15/// Boxed [`Error`] with [`Send`] and [`Sync`]
16pub type BoxError = Box<dyn Error + Send + Sync>;