Enum cbor_protocol::ProtocolError [−][src]
pub enum ProtocolError { Timeout, NoDataReceived, ReceiveFailed { err: Error, }, SendFailed { dest: SocketAddr, err: Error, }, IoError { err: Error, }, ParseFail { err: String, }, }
An error generated during protocol execution
Variants
Timeout
Indicates a timeout when sending or receiving
NoDataReceived
Indicates no data was received
ReceiveFailed
Indicates a failure to receive
Fields of ReceiveFailed
err: Error | Cause of receive failure |
SendFailed
Indicates a failure to send
Fields of SendFailed
dest: SocketAddr | Intended send destination |
err: Error | Cause of send failure |
IoError
Indicates a non-send/received Io error
Fields of IoError
err: Error | Root Io Error |
ParseFail
Indicates a failure to parse a message
Fields of ParseFail
err: String | Cause of parsing failure |
Trait Implementations
impl Debug for ProtocolError
[src]
impl Debug for ProtocolError
Auto Trait Implementations
impl Send for ProtocolError
impl Send for ProtocolError
impl Sync for ProtocolError
impl Sync for ProtocolError