Enum tarpc::Error [] [src]

pub enum Error<E> {
    Io(Error),
    ResponseDeserialize(Error),
    RequestDeserialize(String),
    App(E),
}

All errors that can occur during the use of tarpc.

Variants

Any IO error.

Error deserializing the server response.

Typically this indicates a faulty implementation of serde::Serialize or serde::Deserialize.

Error deserializing the client request.

Typically this indicates a faulty implementation of serde::Serialize or serde::Deserialize.

The server was unable to reply to the rpc for some reason.

This is a service-specific error. Its type is individually specified in the service! macro for each rpc.

Trait Implementations

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

Formats the value using the given formatter.

impl<E: StdError + Deserialize + Serialize + Send + 'static> Display for Error<E>
[src]

Formats the value using the given formatter. Read more

impl<E: StdError + Deserialize + Serialize + Send + 'static> StdError for Error<E>
[src]

A short description of the error. Read more

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

impl<E> From<Error> for Error<E>
[src]

Performs the conversion.

impl<E> From<WireError<E>> for Error<E>
[src]

Performs the conversion.