#[non_exhaustive]pub enum NativeRpcError {
Call {
method: &'static str,
source: Box<NativeClientError>,
},
Unsupported {
method: &'static str,
raw: Value,
},
ResponseRepresentation {
method: &'static str,
},
InvalidDiscovery {
source: Box<NativeClientError>,
},
WireFormat {
actual: String,
},
MissingMethods {
methods: Vec<String>,
},
NetworkMismatch {
expected: NetworkHash,
actual: NetworkHash,
},
InvalidExpiry {
tip: i64,
offset: i64,
},
}Expand description
A native read or endpoint preparation failure. Original application errors and unfamiliar results remain available to the embedding application.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Call
Unsupported
ResponseRepresentation
InvalidDiscovery
Missing bootstrap method or malformed discovery, including responses
without Thruput’s required wireFormat field.
Fields
§
source: Box<NativeClientError>WireFormat
MissingMethods
NetworkMismatch
InvalidExpiry
Trait Implementations§
Source§impl Debug for NativeRpcError
impl Debug for NativeRpcError
Source§impl Display for NativeRpcError
impl Display for NativeRpcError
Source§impl Error for NativeRpcError
impl Error for NativeRpcError
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()
Auto Trait Implementations§
impl !RefUnwindSafe for NativeRpcError
impl !UnwindSafe for NativeRpcError
impl Freeze for NativeRpcError
impl Send for NativeRpcError
impl Sync for NativeRpcError
impl Unpin for NativeRpcError
impl UnsafeUnpin for NativeRpcError
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