anvil_server/error.rs
1//! Error variants used to unify different connection streams
2
3/// An error that can occur when reading an incoming request
4#[derive(Debug, thiserror::Error)]
5pub enum RequestError {
6 #[error(transparent)]
7 Axum(#[from] axum::Error),
8 #[error(transparent)]
9 Serde(#[from] serde_json::Error),
10 #[error(transparent)]
11 Io(#[from] std::io::Error),
12 #[error("Disconnect")]
13 Disconnect,
14}