Enum channel_protocol::ProtocolError[][src]

pub enum ProtocolError {
    CborError {
        err: ProtocolError,
    },
    MessageParseError {
        err: String,
    },
    ReceiveTimeout,
    ReceiveError {
        err: String,
    },
}

Errors which occur when using ChannelProtocol

Variants

An error was encountered by serde_cbor

Fields of CborError

The specific CBOR protocol error

A general error was encountered when parsing a message

Fields of MessageParseError

Underlying error encountered

A timeout occurred when receiving data

An error was encountered when receiving a message

Fields of ReceiveError

Underlying error encountered

Trait Implementations

impl Debug for ProtocolError
[src]

Formats the value using the given formatter. Read more

impl From<ProtocolError> for ProtocolError
[src]

Performs the conversion.

Auto Trait Implementations

impl Send for ProtocolError

impl Sync for ProtocolError