File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change 1
1
use std:: io:: Error ;
2
2
3
+ use crate :: protocol:: error:: ProtocolError ;
4
+
3
5
/// An enum to represent the different errors that can occur for the [crate::socket::client::ClientSocket] instance
4
6
pub enum ClientSocketError {
5
7
/// Indicates that the error caused is due to I/O operations by tcp_listner and other I/O object
6
8
IoError {
7
9
/// The underlying I/O Error
8
10
source : Error
11
+ } ,
12
+
13
+
14
+ /// Indicates that the socket has timed out of transcating (I/O) data
15
+ TimeoutError {
16
+ message : String
17
+ } ,
18
+
19
+
20
+ /// Indiacates that an error has occured during the parsing of data
21
+ ProtocolParseError {
22
+ source : ProtocolError
9
23
}
24
+
25
+
10
26
}
11
27
12
28
/// From implementation to typecast [std::io::Error] to [ClientSocketError]
You can’t perform that action at this time.
0 commit comments