Fields
code: i32
message: Cow<'static, str>
data: Option<Value>
Implementations
sourceimpl RpcError
impl RpcError
pub fn into_anyhow(self) -> Error
Trait Implementations
sourceimpl<'de> Deserialize<'de> for RpcError
impl<'de> Deserialize<'de> for RpcError
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
sourceimpl<Method: RpcMethod> From<RpcError> for RpcResponse<Method>
impl<Method: RpcMethod> From<RpcError> for RpcResponse<Method>
Auto Trait Implementations
impl RefUnwindSafe for RpcError
impl Send for RpcError
impl Sync for RpcError
impl Unpin for RpcError
impl UnwindSafe for RpcError
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