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 copy 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 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 size_hint(&self) -> usize
fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read more
source§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.
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<UnrecoverableMemoryError> for UnrecoverableMemoryError
impl PartialEq<UnrecoverableMemoryError> for UnrecoverableMemoryError
source§fn eq(&self, other: &UnrecoverableMemoryError) -> bool
fn eq(&self, other: &UnrecoverableMemoryError) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd<UnrecoverableMemoryError> for UnrecoverableMemoryError
impl PartialOrd<UnrecoverableMemoryError> for UnrecoverableMemoryError
source§fn partial_cmp(&self, other: &UnrecoverableMemoryError) -> Option<Ordering>
fn partial_cmp(&self, other: &UnrecoverableMemoryError) -> 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 moreimpl EncodeLike<UnrecoverableMemoryError> for UnrecoverableMemoryError
impl Eq for UnrecoverableMemoryError
impl StructuralEq for UnrecoverableMemoryError
impl StructuralPartialEq for UnrecoverableMemoryError
Auto Trait Implementations§
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
source§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