Enum muxrpc::ConnectionRpcError [] [src]

pub enum ConnectionRpcError<E> {
    PeerError(E),
    ConnectionError(ConnectionError),
    InvalidData(SerdeError),
    NotJson,
}

An error that can be emitted during the rpc process when receiving multiplexed data.

Variants

An error signaled by the peer via the muxrpc protocol.

A ConnectionError occured.

Received a packet containing invalid data. This error is non-fatal.

Got a packet without the json type. This error is non-fatal.

Trait Implementations

impl<E: Debug> Debug for ConnectionRpcError<E>
[src]

[src]

Formats the value using the given formatter. Read more

impl<E: Display> Display for ConnectionRpcError<E>
[src]

[src]

Formats the value using the given formatter. Read more

impl<E: Error> Error for ConnectionRpcError<E>
[src]

[src]

A short description of the error. Read more

[src]

The lower-level cause of this error, if any. Read more

impl<E> From<ConnectionError> for ConnectionRpcError<E>
[src]

[src]

Performs the conversion.

impl<E> From<SerdeError> for ConnectionRpcError<E>
[src]

[src]

Performs the conversion.

Auto Trait Implementations

impl<E> Send for ConnectionRpcError<E> where
    E: Send

impl<E> Sync for ConnectionRpcError<E> where
    E: Sync