pub struct GenericWorkItem<Xt> {
pub service: ServiceId,
pub code_hash: CodeHash,
pub payload: WorkPayload,
pub refine_gas_limit: Gas,
pub accumulate_gas_limit: Gas,
pub import_segments: WorkItemImportsVec,
pub extrinsics: Vec<Xt>,
pub export_count: u16,
}Expand description
A definition of work to be done by the Refinement logic of a service and transformed into a WorkOutput for its Accumulation logic.
This is the generic version of the work-item, which is specialized depending on whether and how the extrinsic data is supplied.
Fields§
§service: ServiceIdService identifier to which this work item relates.
code_hash: CodeHashThe service’s code hash at the time of reporting. This must be available in-core at the time of the lookup-anchor block.
payload: WorkPayloadOpaque data passed in to the service’s Refinement logic to describe its workload.
refine_gas_limit: GasGas limit with which to execute this work item’s Refine logic.
accumulate_gas_limit: GasGas limit with which to execute this work item’s Accumulate logic.
import_segments: WorkItemImportsVecSequence of imported data segments.
extrinsics: Vec<Xt>Additional data available to the service’s Refinement logic while doing its workload.
export_count: u16Number of segments exported by this work item.
Trait Implementations§
Source§impl<Xt: Clone> Clone for GenericWorkItem<Xt>
impl<Xt: Clone> Clone for GenericWorkItem<Xt>
Source§fn clone(&self) -> GenericWorkItem<Xt>
fn clone(&self) -> GenericWorkItem<Xt>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more