pub enum RpcError {
Transport(String),
Json(String),
Rpc {
code: i64,
message: String,
},
Unexpected(String),
Base58(String),
Base64(String),
}Variants§
Transport(String)
waki / wasi:http transport failure.
Json(String)
serde_json (de)serialization failure.
Rpc
A JSON-RPC error object returned by the RPC server.
Unexpected(String)
Response envelope missing result/error, or a required field absent.
Base58(String)
A base58 string in the response didn’t decode to a 32-byte pubkey/blockhash.
Base64(String)
A base64 account-data blob didn’t decode.
Trait Implementations§
impl Eq for RpcError
impl StructuralPartialEq for RpcError
Auto Trait Implementations§
impl Freeze for RpcError
impl RefUnwindSafe for RpcError
impl Send for RpcError
impl Sync for RpcError
impl Unpin for RpcError
impl UnsafeUnpin for RpcError
impl UnwindSafe for RpcError
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