Struct json_rpc_types::Error 
source · [−]Expand description
Error object, defined by JSON-RPC
Fields
code: ErrorCodeCode
message: StrBuf<31>Message
data: Option<T>Optional data
Implementations
sourceimpl<T> Error<T>
 
impl<T> Error<T>
sourcepub const fn with_custom_msg_truncated(code: ErrorCode, message: &str) -> Self
 
pub const fn with_custom_msg_truncated(code: ErrorCode, message: &str) -> Self
Constructs error with custom message
sourcepub const fn with_custom_msg(code: ErrorCode, message: &str) -> Self
 
pub const fn with_custom_msg(code: ErrorCode, message: &str) -> Self
Constructs error with custom message
Trait Implementations
sourceimpl<'de, T> Deserialize<'de> for Error<T> where
    T: Deserialize<'de>, 
 
impl<'de, T> Deserialize<'de> for Error<T> where
    T: Deserialize<'de>, 
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
    __D: Deserializer<'de>, 
 
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
    __D: Deserializer<'de>, 
Deserialize this value from the given Serde deserializer. Read more
impl<T> StructuralPartialEq for Error<T>
Auto Trait Implementations
impl<T> RefUnwindSafe for Error<T> where
    T: RefUnwindSafe, 
impl<T> Send for Error<T> where
    T: Send, 
impl<T> Sync for Error<T> where
    T: Sync, 
impl<T> Unpin for Error<T> where
    T: Unpin, 
impl<T> UnwindSafe for Error<T> where
    T: UnwindSafe, 
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
    T: ?Sized, 
 
impl<T> BorrowMut<T> for T where
    T: ?Sized, 
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more