romp/errors.rs
1//! Common error definitions returned by the `romp` server.
2
3/// Errors that the server can generate
4#[derive(Debug, PartialEq)]
5pub enum ServerError {
6 BufferFlup,
7 Io,
8 General,
9 DestinationUnknown,
10 DestinationFlup,
11 MessageFlup,
12 SubscriptionFlup,
13 ShuttingDown,
14}
15
16/// Errors that the client can generate
17#[derive(Debug, PartialEq)]
18pub enum ClientError {
19 Syntax,
20 Timeout,
21 HdrFlup,
22 BodyFlup,
23 SubsFlup,
24}