#[non_exhaustive]pub enum SubmitCallError {
Rpc {
tx_hash: TxHash,
source: Box<NativeClientError>,
},
Unsupported {
tx_hash: TxHash,
raw: Value,
},
ResponseRepresentation {
tx_hash: TxHash,
},
HashMismatch {
tx_hash: TxHash,
returned: TxHash,
},
Encoding {
tx_hash: TxHash,
source: FromHexError,
},
}Expand description
Native submission failure retaining the canonical identity prepared locally. Neither an RPC failure nor an unfamiliar acknowledgement proves non-admission.
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.
Implementations§
Source§impl SubmitCallError
impl SubmitCallError
Sourcepub fn proves_first_send_not_admitted(&self) -> bool
pub fn proves_first_send_not_admitted(&self) -> bool
The first dispatch was refused; this does not prove that an earlier submission of the same bytes was refused or permit automatic retries.
Trait Implementations§
Source§impl Debug for SubmitCallError
impl Debug for SubmitCallError
Source§impl Display for SubmitCallError
impl Display for SubmitCallError
Source§impl Error for SubmitCallError
impl Error for SubmitCallError
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 SubmitCallError
impl !UnwindSafe for SubmitCallError
impl Freeze for SubmitCallError
impl Send for SubmitCallError
impl Sync for SubmitCallError
impl Unpin for SubmitCallError
impl UnsafeUnpin for SubmitCallError
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