Enum Outcome Copy item path Source pub enum Outcome {
Halt,
Panic,
PageFault {
page: u64 ,
num_pages: u64 ,
},
OutOfGas,
OutputLimitReached,
}Expand description The result code returned by CoreVM service.
It is similar to InvokeOutcome but does not include host-call
faults because they are automatically handled by CoreVM.
Completed with a page fault that couldn’t be handled by CoreVM.
Undhandled page fault might occur because either the max. no. of exports is reached or
the corresponding page was not imported by the work package. In the former case the
program needs to be resumed in the next work package without any further action from the
builder. In the latter case the page with the specified address has to be imported on the
next program run to continue.
Completed by running out of gas.
The inner VM has reached the max. no. of exports while appending new data to the output
stream.
Performs copy-assignment from
source.
Read more Formats the value using the given formatter.
Read more Attempt to deserialise the value from input.
Attempt to deserialize the value from input into a pre-allocated piece of memory.
Read more Attempt to skip the encoded value from input.
Read more Returns the fixed encoded size of the type.
Read more If possible give a hint of expected size of the encoding.
Read more Convert self to a slice and append it to the destination.
Convert self to an owned vector.
Convert self to a slice and then invoke the given closure with it.
Upper bound, in bytes, of the maximum encoded size of this item.
Tests for self and other values to be equal, and is used by ==.
Tests for !=. The default implementation is almost always sufficient,
and should not be overridden without very good reason.
Immutably borrows from an owned value.
Read more Mutably borrows from an owned value.
Read more 🔬 This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from
self to
dest.
Read more Decode
Self and consume all of the given input data.
Read more Decode
Self and consume all of the given input data.
Read more Decode
Self with the given maximum recursion depth and advance
input by the number of
bytes consumed.
Read more Returns the argument unchanged.
Calls U::from(self).
That is, this conversion is whatever the implementation of
From <T> for U chooses to do.
Return an encoding of Self prepended by given slice.
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning.
Read more Uses borrowed data to replace owned data, usually by cloning.
Read more The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.