aerostream_client/
error.rs1use thiserror::Error;
2
3#[derive(Error, Debug)]
5pub enum AeroError {
6 #[error("Authentication failed: {0}")]
8 AuthFailed(String),
9
10 #[error("Protocol error: {0}")]
12 ProtocolError(String),
13
14 #[error("I/O error: {0}")]
16 Io(#[from] std::io::Error),
17
18 #[error("Out of order sequence number")]
20 OutOfOrder,
21
22 #[error("Broker connection disconnected")]
24 Disconnected,
25
26 #[error("Operation timed out: {0}")]
28 Timeout(String),
29
30 #[error("Invalid configuration: {0}")]
32 InvalidConfiguration(String),
33}