pub enum RpcClientError {
Transport(Error),
Codec(CoolError),
InvalidResponse(String),
BadInput(String),
Remote(RpcRemoteError),
}Expand description
Top-level error returned by the RPC client. Mirrors ClientError
(the REST error type) but reports server-side failures as
RpcRemoteError { code, message, details } rather than the
REST-shaped CoolErrorResponse.
Variants§
Trait Implementations§
Source§impl Debug for RpcClientError
impl Debug for RpcClientError
Source§impl Display for RpcClientError
impl Display for RpcClientError
Source§impl Error for RpcClientError
impl Error for RpcClientError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<CoolError> for RpcClientError
impl From<CoolError> for RpcClientError
Auto Trait Implementations§
impl Freeze for RpcClientError
impl !RefUnwindSafe for RpcClientError
impl Send for RpcClientError
impl Sync for RpcClientError
impl Unpin for RpcClientError
impl UnsafeUnpin for RpcClientError
impl !UnwindSafe for RpcClientError
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