pub struct RpcRemoteError {
pub status: StatusCode,
pub body: RpcErrorBody,
}Expand description
Error variant produced by the RPC client when a remote call fails with
an RpcErrorBody payload. Distinct from the REST ClientError::Remote
(which carries the CoolErrorResponse shape) so library users can
switch on the gRPC-style code string directly.
Fields§
§status: StatusCode§body: RpcErrorBodyTrait Implementations§
Source§impl Clone for RpcRemoteError
impl Clone for RpcRemoteError
Source§fn clone(&self) -> RpcRemoteError
fn clone(&self) -> RpcRemoteError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RpcRemoteError
impl Debug for RpcRemoteError
Source§impl Display for RpcRemoteError
impl Display for RpcRemoteError
Source§impl Error for RpcRemoteError
impl Error for RpcRemoteError
1.30.0 · 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()
Auto Trait Implementations§
impl Freeze for RpcRemoteError
impl RefUnwindSafe for RpcRemoteError
impl Send for RpcRemoteError
impl Sync for RpcRemoteError
impl Unpin for RpcRemoteError
impl UnsafeUnpin for RpcRemoteError
impl UnwindSafe for RpcRemoteError
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