#[repr(u16)]pub enum RpcErrorCode {
Show 19 variants
NoError = 0,
Undefined = 1,
NotFound = 2,
MalformedRequest = 3,
WrongSizeArgs = 4,
InvalidArgs = 5,
ReadOnly = 6,
WriteOnly = 7,
Timeout = 8,
Busy = 9,
WrongDeviceState = 10,
LoadFailed = 11,
LoadRpcFailed = 12,
SaveFailed = 13,
SaveWriteFailed = 14,
Internal = 15,
OutOfMemory = 16,
OutOfRange = 17,
Unknown(u16),
}Variants§
NoError = 0
Undefined = 1
NotFound = 2
MalformedRequest = 3
WrongSizeArgs = 4
InvalidArgs = 5
ReadOnly = 6
WriteOnly = 7
Timeout = 8
Busy = 9
WrongDeviceState = 10
LoadFailed = 11
LoadRpcFailed = 12
SaveFailed = 13
SaveWriteFailed = 14
Internal = 15
OutOfMemory = 16
OutOfRange = 17
Unknown(u16)
Trait Implementations§
Source§impl Clone for RpcErrorCode
impl Clone for RpcErrorCode
impl Copy for RpcErrorCode
Source§impl Debug for RpcErrorCode
impl Debug for RpcErrorCode
Source§impl Display for RpcErrorCode
impl Display for RpcErrorCode
Source§impl Error for RpcErrorCode
impl Error for RpcErrorCode
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<RpcErrorCode> for u16
impl From<RpcErrorCode> for u16
Source§fn from(enum_value: RpcErrorCode) -> Self
fn from(enum_value: RpcErrorCode) -> Self
Converts to this type from the input type.
Source§impl From<u16> for RpcErrorCode
impl From<u16> for RpcErrorCode
Source§impl FromPrimitive for RpcErrorCode
impl FromPrimitive for RpcErrorCode
Auto Trait Implementations§
impl Freeze for RpcErrorCode
impl RefUnwindSafe for RpcErrorCode
impl Send for RpcErrorCode
impl Sync for RpcErrorCode
impl Unpin for RpcErrorCode
impl UnsafeUnpin for RpcErrorCode
impl UnwindSafe for RpcErrorCode
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