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.
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 Display for ActorPrepareMemoryError
impl Display for ActorPrepareMemoryError
Source§impl Encode for ActorPrepareMemoryError
impl Encode for ActorPrepareMemoryError
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
Source§impl From<ActorPrepareMemoryError> for ActorSystemError<ActorPrepareMemoryError, SystemPrepareMemoryError>
impl From<ActorPrepareMemoryError> for ActorSystemError<ActorPrepareMemoryError, SystemPrepareMemoryError>
Source§fn from(err: ActorPrepareMemoryError) -> Self
fn from(err: ActorPrepareMemoryError) -> Self
Converts to this type from the input type.
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 for ActorPrepareMemoryError
impl PartialEq for ActorPrepareMemoryError
Source§impl PartialOrd for ActorPrepareMemoryError
impl PartialOrd for ActorPrepareMemoryError
Source§impl TypeInfo for ActorPrepareMemoryError
impl TypeInfo for ActorPrepareMemoryError
impl EncodeLike for ActorPrepareMemoryError
impl Eq for ActorPrepareMemoryError
impl StructuralPartialEq for ActorPrepareMemoryError
Auto Trait Implementations§
impl Freeze for ActorPrepareMemoryError
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