pub trait QueueOnDemandOrders<RelayBlockNumber> {
// Required methods
fn queue_batch(batch: Vec<(TaskId, RelayBlockNumber)>);
fn ensure_successful_delivery();
}Expand description
Instructs the Relay chain to enqueue a batch of on-demand orders.
On the Coretime chain this is implemented by sending an XCM Transact to the Relay chain’s
coretime pallet.
Required Methods§
Sourcefn queue_batch(batch: Vec<(TaskId, RelayBlockNumber)>)
fn queue_batch(batch: Vec<(TaskId, RelayBlockNumber)>)
Enqueue batch on the Relay chain.
Each entry is the parachain the order was placed for and the Relay-chain block number it was ordered at.
Sourcefn ensure_successful_delivery()
fn ensure_successful_delivery()
Make sure that the batches queued afterwards reach the Relay chain.
Used to set up the benchmarks, so that they measure a successful delivery.
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.