Trait AwaitTx

Source
pub trait AwaitTx {
    // Required method
    async fn await_tx_output<C: QueryUtxoByUtxoId>(
        &self,
        client: &C,
        utxo_id: UtxoId,
    ) -> Result<()>;
}
Expand description

Trait for different strategies of waiting for a Cardano transaction to complete.

Required Methods§

Source

async fn await_tx_output<C: QueryUtxoByUtxoId>( &self, client: &C, utxo_id: UtxoId, ) -> Result<()>

This is used for waiting until the output of a submitted transaction can be observed. TODO: make this take a Transaction ID instead of a UtxoId

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§