pub struct VMExceptionObj {
tag: u32,
payload: Box<UnsafeCell<[RawValue]>>,
backtrace: Backtrace,
}Expand description
Underlying object referenced by a VMExceptionRef.
Fields§
§tag: u32§payload: Box<UnsafeCell<[RawValue]>>§backtrace: BacktraceImplementations§
Source§impl VMExceptionObj
impl VMExceptionObj
Sourcepub fn new(tag: InternalStoreHandle<VMTag>, payload: Box<[RawValue]>) -> Self
pub fn new(tag: InternalStoreHandle<VMTag>, payload: Box<[RawValue]>) -> Self
Creates a new VMExceptionObj from the given tag and values; the tag is assumed to be from the same store as the VMExceptionObj itself.
Sourcepub fn new_zeroed(ctx: &StoreObjects, tag: InternalStoreHandle<VMTag>) -> Self
pub fn new_zeroed(ctx: &StoreObjects, tag: InternalStoreHandle<VMTag>) -> Self
Creates a new VMExceptionObj from the given tag with all values initialized to zero; the tag is assumed to be from the same store as the VMExceptionObj itself.
pub(crate) fn tag_index(&self) -> u32
Sourcepub fn tag(&self) -> InternalStoreHandle<VMTag>
pub fn tag(&self) -> InternalStoreHandle<VMTag>
Gets the tag of this exception.
Trait Implementations§
Source§impl Debug for VMExceptionObj
impl Debug for VMExceptionObj
Source§impl StoreObject for VMExceptionObj
impl StoreObject for VMExceptionObj
Source§fn list(ctx: &StoreObjects) -> &Vec<Self>
fn list(ctx: &StoreObjects) -> &Vec<Self>
List the objects in the store.
Source§fn list_mut(ctx: &mut StoreObjects) -> &mut Vec<Self>
fn list_mut(ctx: &mut StoreObjects) -> &mut Vec<Self>
List the objects in the store, mutably.
Auto Trait Implementations§
impl Freeze for VMExceptionObj
impl !RefUnwindSafe for VMExceptionObj
impl Send for VMExceptionObj
impl !Sync for VMExceptionObj
impl Unpin for VMExceptionObj
impl UnwindSafe for VMExceptionObj
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.