pub struct WorkReport {
pub core_index: u16,
pub package_hash: Hash,
pub result: WorkResult,
pub context: WorkContext,
pub authorizer_signature: Signature,
}Expand description
Work report from a core
Fields§
§core_index: u16Core index that produced this report
package_hash: HashWork package hash
result: WorkResultResult of work execution
context: WorkContextContext for work execution
Authorizer signature
Implementations§
Source§impl WorkReport
impl WorkReport
Sourcepub fn new(
core_index: u16,
package_hash: Hash,
result: WorkResult,
context: WorkContext,
authorizer_signature: Signature,
) -> Self
pub fn new( core_index: u16, package_hash: Hash, result: WorkResult, context: WorkContext, authorizer_signature: Signature, ) -> Self
Create a new work report
Trait Implementations§
Source§impl Clone for WorkReport
impl Clone for WorkReport
Source§fn clone(&self) -> WorkReport
fn clone(&self) -> WorkReport
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WorkReport
impl Debug for WorkReport
Source§impl Decode for WorkReport
impl Decode for WorkReport
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<'de> Deserialize<'de> for WorkReport
impl<'de> Deserialize<'de> for WorkReport
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Encode for WorkReport
impl Encode for WorkReport
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 WorkReport
impl Eq for WorkReport
Source§impl PartialEq for WorkReport
impl PartialEq for WorkReport
Source§fn eq(&self, other: &WorkReport) -> bool
fn eq(&self, other: &WorkReport) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for WorkReport
impl Serialize for WorkReport
impl StructuralPartialEq for WorkReport
Source§impl Validate for WorkReport
impl Validate for WorkReport
fn validate(&self) -> PrimitiveResult<()>
Auto Trait Implementations§
impl Freeze for WorkReport
impl RefUnwindSafe for WorkReport
impl Send for WorkReport
impl Sync for WorkReport
impl Unpin for WorkReport
impl UnsafeUnpin for WorkReport
impl UnwindSafe for WorkReport
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