bui_backend/errors.rs
1use ::hyper;
2use thiserror::Error;
3
4/// Possible errors
5#[derive(Error, Debug)]
6pub enum Error {
7 /// A non-local IP address requires a token
8 #[error("non-localhost address requires pre-shared token")]
9 NonLocalhostRequiresPreSharedToken,
10 /// A wrapped error from the hyper crate
11 #[error("hyper error `{0}`")]
12 Hyper(#[from] hyper::Error),
13
14 /// A wrapped error from std::io
15 #[error("IO error `{0}`")]
16 Io(#[from] std::io::Error),
17
18 /// An error that occurred with an event stream.
19 #[error("rx event")]
20 RxEvent,
21}