pub enum UnrecoverableMemoryError {
AccessOutOfBounds,
RuntimeAllocOutOfBounds,
}
Expand description
Memory error in infallible sys-call.
Variants§
AccessOutOfBounds
The error occurs in attempt to access memory outside wasm program memory.
RuntimeAllocOutOfBounds
The error occurs, when program tries to allocate in block-chain runtime more memory than allowed.
Trait Implementations§
Source§impl Clone for UnrecoverableMemoryError
impl Clone for UnrecoverableMemoryError
Source§fn clone(&self) -> UnrecoverableMemoryError
fn clone(&self) -> UnrecoverableMemoryError
Returns a duplicate of the value. Read more
1.0.0 · 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 UnrecoverableMemoryError
impl Debug for UnrecoverableMemoryError
Source§impl Decode for UnrecoverableMemoryError
impl Decode for UnrecoverableMemoryError
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 UnrecoverableMemoryError
impl Display for UnrecoverableMemoryError
Source§impl Encode for UnrecoverableMemoryError
impl Encode for UnrecoverableMemoryError
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<UnrecoverableMemoryError> for UnrecoverableExtError
impl From<UnrecoverableMemoryError> for UnrecoverableExtError
Source§fn from(original: UnrecoverableMemoryError) -> UnrecoverableExtError
fn from(original: UnrecoverableMemoryError) -> UnrecoverableExtError
Converts to this type from the input type.
Source§impl Ord for UnrecoverableMemoryError
impl Ord for UnrecoverableMemoryError
Source§fn cmp(&self, other: &UnrecoverableMemoryError) -> Ordering
fn cmp(&self, other: &UnrecoverableMemoryError) -> 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 UnrecoverableMemoryError
impl PartialEq for UnrecoverableMemoryError
Source§impl PartialOrd for UnrecoverableMemoryError
impl PartialOrd for UnrecoverableMemoryError
impl EncodeLike for UnrecoverableMemoryError
impl Eq for UnrecoverableMemoryError
impl StructuralPartialEq for UnrecoverableMemoryError
Auto Trait Implementations§
impl Freeze for UnrecoverableMemoryError
impl RefUnwindSafe for UnrecoverableMemoryError
impl Send for UnrecoverableMemoryError
impl Sync for UnrecoverableMemoryError
impl Unpin for UnrecoverableMemoryError
impl UnwindSafe for UnrecoverableMemoryError
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