#[repr(u8)]pub enum RpcIntErr {
Unreachable = 0,
IO = 1,
Timeout = 2,
Method = 3,
Service = 4,
Encode = 5,
Decode = 6,
Internal = 7,
Version = 8,
}Expand description
RpcIntErr represent internal error from the framework
NOTE:
- This error type is serialized in string, “rpc_” prefix is reserved for internal error, you should avoid conflict with it.
- We presume the variants less than RpcIntErr::Method is retriable errors
Variants§
Unreachable = 0
Ping or connect error
IO = 1
IO error
Timeout = 2
Task timeout
Method = 3
Method not found
Service = 4
service notfound
Encode = 5
Encode Error
Decode = 6
Decode Error
Internal = 7
Internal error
Version = 8
invalid version number in rpc header
Implementations§
Trait Implementations§
Source§impl Error for RpcIntErr
impl Error for RpcIntErr
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()
Source§impl From<RpcIntErr> for EncodedErr
impl From<RpcIntErr> for EncodedErr
Source§impl PartialOrd for RpcIntErr
impl PartialOrd for RpcIntErr
impl StructuralPartialEq for RpcIntErr
Auto Trait Implementations§
impl Freeze for RpcIntErr
impl RefUnwindSafe for RpcIntErr
impl Send for RpcIntErr
impl Sync for RpcIntErr
impl Unpin for RpcIntErr
impl UnwindSafe for RpcIntErr
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