Enum wasmer_types::trapcode::ArchivedTrapCode
source · #[repr(u8)]pub enum ArchivedTrapCode {
StackOverflow = 0,
HeapAccessOutOfBounds = 1,
HeapMisaligned = 2,
TableAccessOutOfBounds = 3,
IndirectCallToNull = 4,
BadSignature = 5,
IntegerOverflow = 6,
IntegerDivisionByZero = 7,
BadConversionToInteger = 8,
UnreachableCodeReached = 9,
UnalignedAtomic = 10,
UncaughtException = 11,
}
Expand description
An archived TrapCode
Variants§
StackOverflow = 0
The archived counterpart of TrapCode::StackOverflow
HeapAccessOutOfBounds = 1
The archived counterpart of TrapCode::HeapAccessOutOfBounds
HeapMisaligned = 2
The archived counterpart of TrapCode::HeapMisaligned
TableAccessOutOfBounds = 3
The archived counterpart of TrapCode::TableAccessOutOfBounds
IndirectCallToNull = 4
The archived counterpart of TrapCode::IndirectCallToNull
BadSignature = 5
The archived counterpart of TrapCode::BadSignature
IntegerOverflow = 6
The archived counterpart of TrapCode::IntegerOverflow
IntegerDivisionByZero = 7
The archived counterpart of TrapCode::IntegerDivisionByZero
BadConversionToInteger = 8
The archived counterpart of TrapCode::BadConversionToInteger
UnreachableCodeReached = 9
The archived counterpart of TrapCode::UnreachableCodeReached
UnalignedAtomic = 10
The archived counterpart of TrapCode::UnalignedAtomic
UncaughtException = 11
The archived counterpart of TrapCode::UncaughtException
Trait Implementations§
source§impl<__C: Fallible + ?Sized> CheckBytes<__C> for ArchivedTrapCodewhere
<__C as Fallible>::Error: Source,
impl<__C: Fallible + ?Sized> CheckBytes<__C> for ArchivedTrapCodewhere
<__C as Fallible>::Error: Source,
source§unsafe fn check_bytes(
value: *const Self,
context: &mut __C,
) -> Result<(), <__C as Fallible>::Error>
unsafe fn check_bytes( value: *const Self, context: &mut __C, ) -> Result<(), <__C as Fallible>::Error>
Checks whether the given pointer points to a valid value within the
given context. Read more
source§impl Debug for ArchivedTrapCode
impl Debug for ArchivedTrapCode
source§impl PartialEq<ArchivedTrapCode> for TrapCode
impl PartialEq<ArchivedTrapCode> for TrapCode
source§fn eq(&self, other: &ArchivedTrapCode) -> bool
fn eq(&self, other: &ArchivedTrapCode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq<TrapCode> for ArchivedTrapCode
impl PartialEq<TrapCode> for ArchivedTrapCode
impl Portable for ArchivedTrapCode
Auto Trait Implementations§
impl Freeze for ArchivedTrapCode
impl RefUnwindSafe for ArchivedTrapCode
impl Send for ArchivedTrapCode
impl Sync for ArchivedTrapCode
impl Unpin for ArchivedTrapCode
impl UnwindSafe for ArchivedTrapCode
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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> LayoutRaw for T
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.