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
Io(Error)
Any IO error.
ResponseDeserialize(Error)
Error deserializing the server response.
Typically this indicates a faulty implementation of serde::Serialize
or
serde::Deserialize
.
RequestDeserialize(String)
Error deserializing the client request.
Typically this indicates a faulty implementation of serde::Serialize
or
serde::Deserialize
.
App(E)
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]
impl<E: StdError + Deserialize + Serialize + Send + 'static> Display for Error<E>
[src]
impl<E: StdError + Deserialize + Serialize + Send + 'static> StdError for Error<E>
[src]
fn description(&self) -> &str
A short description of the error. Read more
fn cause(&self) -> Option<&StdError>
The lower-level cause of this error, if any. Read more
impl<E> From<Error> for Error<E>
[src]
impl<E> From<WireError<E>> for Error<E>
[src]
fn from(err: WireError<E>) -> Self
Performs the conversion.