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
PeerError(E)
An error signaled by the peer via the muxrpc protocol.
ConnectionError(ConnectionError)
A ConnectionError
occured.
InvalidData(SerdeError)
Received a packet containing invalid data. This error is non-fatal.
NotJson
Got a packet without the json type. This error is non-fatal.
Trait Implementations
impl<E: Debug> Debug for ConnectionRpcError<E>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<E: Display> Display for ConnectionRpcError<E>
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter. Read more
impl<E: Error> Error for ConnectionRpcError<E>
[src]
fn description(&self) -> &str
[src]
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
[src]
The lower-level cause of this error, if any. Read more
impl<E> From<ConnectionError> for ConnectionRpcError<E>
[src]
fn from(err: ConnectionError) -> ConnectionRpcError<E>
[src]
Performs the conversion.
impl<E> From<SerdeError> for ConnectionRpcError<E>
[src]
fn from(err: SerdeError) -> ConnectionRpcError<E>
[src]
Performs the conversion.
Auto Trait Implementations
impl<E> Send for ConnectionRpcError<E> where
E: Send,
E: Send,
impl<E> Sync for ConnectionRpcError<E> where
E: Sync,
E: Sync,