pub enum CoreDispatchError {
FeatureUnavailable {
feature: &'static str,
},
UnsupportedMethod {
era: ProtocolEra,
method: String,
},
InvalidParams {
era: ProtocolEra,
method: &'static str,
},
InvalidFinalMetadata {
method: &'static str,
},
CrossEraRequestMetadata {
method: &'static str,
},
CrossEraResultType {
method: &'static str,
},
CrossEraResultMetadata {
method: &'static str,
},
InvalidResult {
era: ProtocolEra,
method: &'static str,
},
UnexpectedFinalResultType {
method: &'static str,
},
SubscriptionIdMismatch,
ResultCodec(ResultDecodeError),
}Expand description
Stable errors raised while selecting a typed core request or result.
Variants§
A selected wire capability was compiled out of this crate build.
UnsupportedMethod
The selected era does not support this method.
InvalidParams
A request’s method-specific parameters could not be decoded.
InvalidFinalMetadata
Final request metadata was absent, malformed, or for another era.
CrossEraRequestMetadata
A legacy request attempted to carry final per-request metadata.
CrossEraResultType
A legacy result attempted to carry a final resultType discriminator.
CrossEraResultMetadata
A legacy result attempted to carry final result metadata.
InvalidResult
A result did not match the selected method-specific payload.
UnexpectedFinalResultType
A final result used another core discriminator.
SubscriptionIdMismatch
A final subscriptions/listen result did not correlate to its JSON-RPC response ID.
ResultCodec(ResultDecodeError)
The bounded final result codec rejected the wire value.
Trait Implementations§
Source§impl Clone for CoreDispatchError
impl Clone for CoreDispatchError
Source§fn clone(&self) -> CoreDispatchError
fn clone(&self) -> CoreDispatchError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CoreDispatchError
impl Debug for CoreDispatchError
Source§impl Display for CoreDispatchError
impl Display for CoreDispatchError
impl Eq for CoreDispatchError
Source§impl Error for CoreDispatchError
impl Error for CoreDispatchError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<ResultDecodeError> for CoreDispatchError
impl From<ResultDecodeError> for CoreDispatchError
Source§fn from(error: ResultDecodeError) -> Self
fn from(error: ResultDecodeError) -> Self
Source§impl PartialEq for CoreDispatchError
impl PartialEq for CoreDispatchError
impl StructuralPartialEq for CoreDispatchError
Auto Trait Implementations§
impl Freeze for CoreDispatchError
impl RefUnwindSafe for CoreDispatchError
impl Send for CoreDispatchError
impl Sync for CoreDispatchError
impl Unpin for CoreDispatchError
impl UnsafeUnpin for CoreDispatchError
impl UnwindSafe for CoreDispatchError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.