netstack/server/error.rs
1#[derive(Debug, Fail)]
2pub enum ServerError {
3 #[fail(display = "Maximum number of connections reached")]
4 MaximumConnectionsReached,
5
6 #[fail(display = "Connection not ready, please wait for the connected event before sending packets")]
7 ConnectionNotReady,
8
9 #[fail(display = "Connection not found")]
10 ConnectionNotFound,
11}