pub enum Error<E>where
E: Fail,{
Execution {
error: E,
},
Decode {
error: DecodeError,
},
Encode {
error: EncodeError,
},
}Expand description
An error has occurred.
Variants§
Execution
An error occurred during the execution of a (server) RPC endpoint or a (client) RPC transfer mechanism.
Fields
§
error: EThe underlying execution error.
Decode
An error occurred during input decoding.
Fields
§
error: DecodeErrorThe underlying decode error.
Encode
An error occurred during output encoding.
Fields
§
error: EncodeErrorThe underlying encode error.
Implementations§
Trait Implementations§
Source§impl<E> Fail for Error<E>where
E: Fail,
impl<E> Fail for Error<E>where
E: Fail,
Source§fn cause(&self) -> Option<&dyn Fail>
fn cause(&self) -> Option<&dyn Fail>
Returns a reference to the underlying cause of this failure, if it
is an error that wraps other errors. Read more
Source§fn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the
Backtrace carried by this failure, if it
carries one. Read moreSource§impl<E> From<DecodeError> for Error<E>where
E: Fail,
impl<E> From<DecodeError> for Error<E>where
E: Fail,
Source§fn from(error: DecodeError) -> Self
fn from(error: DecodeError) -> Self
Converts to this type from the input type.
Source§impl<E> From<EncodeError> for Error<E>where
E: Fail,
impl<E> From<EncodeError> for Error<E>where
E: Fail,
Source§fn from(error: EncodeError) -> Self
fn from(error: EncodeError) -> Self
Converts to this type from the input type.
impl<E> Eq for Error<E>
impl<E> StructuralPartialEq for Error<E>where
E: Fail,
Auto Trait Implementations§
impl<E> Freeze for Error<E>where
E: Freeze,
impl<E> RefUnwindSafe for Error<E>where
E: RefUnwindSafe,
impl<E> Send for Error<E>
impl<E> Sync for Error<E>
impl<E> Unpin for Error<E>where
E: Unpin,
impl<E> UnwindSafe for Error<E>where
E: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more