pub struct AccumulateItem {
pub package: WorkPackageHash,
pub auth_output: AuthOutput,
pub payload: PayloadHash,
pub result: Result<WorkOutput, WorkError>,
}Expand description
The result and surrounding context of a single Refinement operation passed in to the Accumulation logic.
Fields§
§package: WorkPackageHashThe hash of the payload data passed into Refinement which gave this result.
auth_output: AuthOutputThe output of the Is-Authorized logic which authorized the execution of the work-package which generated this result.
payload: PayloadHashThe hash of the payload data passed into Refinement which gave this result.
result: Result<WorkOutput, WorkError>The result of the Refinement operation itself.
Trait Implementations§
Source§impl Debug for AccumulateItem
impl Debug for AccumulateItem
Source§impl Decode for AccumulateItem
impl Decode for AccumulateItem
Source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<Self, Error>
fn decode<__CodecInputEdqy: Input>( __codec_input_edqy: &mut __CodecInputEdqy, ) -> Result<Self, Error>
Attempt to deserialise the value from input.
Source§fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more
Source§impl Encode for AccumulateItem
impl Encode for AccumulateItem
Source§fn size_hint(&self) -> usize
fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read more
Source§fn encode_to<__CodecOutputEdqy: Output + ?Sized>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy,
)
fn encode_to<__CodecOutputEdqy: Output + ?Sized>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy, )
Convert self to a slice and append it to the destination.
Source§fn using_encoded<R, F>(&self, f: F) -> R
fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.
Source§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
Calculates the encoded size. Read more
impl EncodeLike for AccumulateItem
Auto Trait Implementations§
impl Freeze for AccumulateItem
impl RefUnwindSafe for AccumulateItem
impl Send for AccumulateItem
impl Sync for AccumulateItem
impl Unpin for AccumulateItem
impl UnwindSafe for AccumulateItem
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