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

Indicates a timeout when sending or receiving

Indicates no data was received

Indicates a failure to receive

Fields of ReceiveFailed

Cause of receive failure

Indicates a failure to send

Fields of SendFailed

Intended send destination

Cause of send failure

Indicates a non-send/received Io error

Fields of IoError

Root Io Error

Indicates a failure to parse a message

Fields of ParseFail

Cause of parsing failure

Trait Implementations

impl Debug for ProtocolError
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for ProtocolError

impl Sync for ProtocolError