#[non_exhaustive]pub struct SubmittedCall {
pub tx_hash: TxHash,
}Expand description
A transaction hash that can be observed without resubmitting its envelope.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.tx_hash: TxHashImplementations§
Source§impl SubmittedCall
impl SubmittedCall
Sourcepub const fn new(tx_hash: TxHash) -> Self
pub const fn new(tx_hash: TxHash) -> Self
Resume observation of a retained hash after an uncertain submission or restart. Construction does not claim that the transaction was admitted or executed.
Sourcepub async fn wait<C, F>(
&self,
client: &NativeClient<C>,
network_hash: NetworkHash,
config: ReceiptPollConfig,
cancelled: F,
) -> Result<TransactionReceipt, ReceiptPollError>
pub async fn wait<C, F>( &self, client: &NativeClient<C>, network_hash: NetworkHash, config: ReceiptPollConfig, cancelled: F, ) -> Result<TransactionReceipt, ReceiptPollError>
Wait read-only for this hash on the same caller-verified chain instance. Failed execution receipts are returned intact. Cancellation and timeout retain the native waiter’s commitment, status and original error evidence.
Trait Implementations§
Source§impl Clone for SubmittedCall
impl Clone for SubmittedCall
impl Copy for SubmittedCall
Auto Trait Implementations§
impl Freeze for SubmittedCall
impl RefUnwindSafe for SubmittedCall
impl Send for SubmittedCall
impl Sync for SubmittedCall
impl Unpin for SubmittedCall
impl UnsafeUnpin for SubmittedCall
impl UnwindSafe for SubmittedCall
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