pub enum ActorPrepareMemoryError {
StackEndPageBiggerWasmMemSize(WasmPage, WasmPage),
StackPagesHaveInitialData,
StackIsNotAligned(u32),
}
Expand description
Prepare memory error
Variants§
StackEndPageBiggerWasmMemSize(WasmPage, WasmPage)
Stack end page, which value is specified in WASM code, cannot be bigger than static memory size.
StackPagesHaveInitialData
It’s not allowed to set initial data for stack memory pages, if they are specified in WASM code.
StackIsNotAligned(u32)
Stack is not aligned to WASM page size
Trait Implementations§
source§impl Debug for ActorPrepareMemoryError
impl Debug for ActorPrepareMemoryError
source§impl Decode for ActorPrepareMemoryError
impl Decode for ActorPrepareMemoryError
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.
§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
§fn skip<I>(input: &mut I) -> Result<(), Error>where
I: Input,
fn skip<I>(input: &mut I) -> Result<(), Error>where I: Input,
Attempt to skip the encoded value from input. Read more
§fn encoded_fixed_size() -> Option<usize>
fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more
source§impl Display for ActorPrepareMemoryError
impl Display for ActorPrepareMemoryError
source§impl Encode for ActorPrepareMemoryError
impl Encode for ActorPrepareMemoryError
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.
§fn using_encoded<R, F>(&self, f: F) -> Rwhere
F: FnOnce(&[u8]) -> R,
fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,
Convert self to a slice and then invoke the given closure with it.
§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
Calculates the encoded size. Read more
source§impl Ord for ActorPrepareMemoryError
impl Ord for ActorPrepareMemoryError
source§fn cmp(&self, other: &ActorPrepareMemoryError) -> Ordering
fn cmp(&self, other: &ActorPrepareMemoryError) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<ActorPrepareMemoryError> for ActorPrepareMemoryError
impl PartialEq<ActorPrepareMemoryError> for ActorPrepareMemoryError
source§fn eq(&self, other: &ActorPrepareMemoryError) -> bool
fn eq(&self, other: &ActorPrepareMemoryError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<ActorPrepareMemoryError> for ActorPrepareMemoryError
impl PartialOrd<ActorPrepareMemoryError> for ActorPrepareMemoryError
source§fn partial_cmp(&self, other: &ActorPrepareMemoryError) -> Option<Ordering>
fn partial_cmp(&self, other: &ActorPrepareMemoryError) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl TypeInfo for ActorPrepareMemoryError
impl TypeInfo for ActorPrepareMemoryError
impl EncodeLike<ActorPrepareMemoryError> for ActorPrepareMemoryError
impl Eq for ActorPrepareMemoryError
impl StructuralEq for ActorPrepareMemoryError
impl StructuralPartialEq for ActorPrepareMemoryError
Auto Trait Implementations§
impl RefUnwindSafe for ActorPrepareMemoryError
impl Send for ActorPrepareMemoryError
impl Sync for ActorPrepareMemoryError
impl Unpin for ActorPrepareMemoryError
impl UnwindSafe for ActorPrepareMemoryError
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
§impl<T> DecodeAll for Twhere
T: Decode,
impl<T> DecodeAll for Twhere T: Decode,
§fn decode_all(input: &mut &[u8]) -> Result<T, Error>
fn decode_all(input: &mut &[u8]) -> Result<T, Error>
Decode
Self
and consume all of the given input data. Read more§impl<T> DecodeLimit for Twhere
T: Decode,
impl<T> DecodeLimit for Twhere T: Decode,
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more