pub enum WorkError {
OutOfGas = 1,
Panic = 2,
BadCode = 3,
CodeOversize = 4,
}Expand description
Potential errors encountered during the refinement of a WorkItem.
Although additional errors may be generated internally by the PVM engine,
these are the specific errors designated by the GP for the WorkResult
and that are eligible to be forwarded to the accumulate process as part
of the AccumulateItem.
Variants§
OutOfGas = 1
Gas exhausted (∞).
Panic = 2
Unexpected terminatin (☇).
BadCode = 3
Bad code for the service (BAD).
This may occur due to an unknown service identifier or unavailable code preimage.
CodeOversize = 4
Out of bounds code size (BIG).
Trait Implementations§
Source§impl Decode for WorkError
impl Decode for WorkError
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 WorkError
impl Encode for WorkError
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 WorkError
impl Eq for WorkError
impl StructuralPartialEq for WorkError
Auto Trait Implementations§
impl Freeze for WorkError
impl RefUnwindSafe for WorkError
impl Send for WorkError
impl Sync for WorkError
impl Unpin for WorkError
impl UnwindSafe for WorkError
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