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
CborError
An error was encountered by serde_cbor
Fields of CborError
err: ProtocolError | The specific CBOR protocol error |
MessageParseError
A general error was encountered when parsing a message
Fields of MessageParseError
err: String | Underlying error encountered |
ReceiveTimeout
A timeout occurred when receiving data
ReceiveError
An error was encountered when receiving a message
Fields of ReceiveError
err: String | Underlying error encountered |
Trait Implementations
impl Debug for ProtocolError
[src]
impl Debug for ProtocolError
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl From<ProtocolError> for ProtocolError
[src]
impl From<ProtocolError> for ProtocolError
fn from(error: ProtocolError) -> Self
[src]
fn from(error: ProtocolError) -> Self
Performs the conversion.
Auto Trait Implementations
impl Send for ProtocolError
impl Send for ProtocolError
impl Sync for ProtocolError
impl Sync for ProtocolError