Struct near_workspaces::operations::TransactionStatus
source · pub struct TransactionStatus<'a> { /* private fields */ }Expand description
TransactionStatus object relating to an asynchronous transaction on the network.
Used to query into the status of the Transaction for whether it has completed or not.
Implementations§
source§impl<'a> TransactionStatus<'a>
impl<'a> TransactionStatus<'a>
sourcepub async fn status(&self) -> Result<Poll<ExecutionFinalResult>>
pub async fn status(&self) -> Result<Poll<ExecutionFinalResult>>
Checks the status of the transaction. If an Err is returned, then the transaction
is in an unexpected state. The error should have further context. Otherwise, if an
Ok value with Poll::Pending is returned, then the transaction has not finished.
sourcepub fn sender_id(&self) -> &AccountId
pub fn sender_id(&self) -> &AccountId
Get the AccountId of the account that initiated this transaction.
sourcepub fn hash(&self) -> &CryptoHash
pub fn hash(&self) -> &CryptoHash
Reference CryptoHash to the submitted transaction, pending completion.
Trait Implementations§
source§impl<'a> Debug for TransactionStatus<'a>
impl<'a> Debug for TransactionStatus<'a>
source§impl<'a> IntoFuture for TransactionStatus<'a>
impl<'a> IntoFuture for TransactionStatus<'a>
§type Output = Result<ExecutionFinalResult, Error>
type Output = Result<ExecutionFinalResult, Error>
The output that the future will produce on completion.
§type IntoFuture = Pin<Box<dyn Future<Output = <TransactionStatus<'a> as IntoFuture>::Output> + Send + 'a, Global>>
type IntoFuture = Pin<Box<dyn Future<Output = <TransactionStatus<'a> as IntoFuture>::Output> + Send + 'a, Global>>
Which kind of future are we turning this into?
source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read more