Skip to main content

VMStoreContext

Struct VMStoreContext 

Source
pub struct VMStoreContext<P: PtrSize>(pub P);
Expand description

Offsets of fields within the VMStoreContext type.

Tuple Fields§

§0: P

Implementations§

Source§

impl<P: PtrSize> VMStoreContext<P>

Source

pub fn fuel_consumed(&self) -> u8

The offset of the fuel_consumed field of VMStoreContext.

Source

pub fn epoch_deadline(&self) -> u8

The offset of the epoch_deadline field of VMStoreContext.

Source

pub fn execution_version(&self) -> u8

The offset of the execution_version field of VMStoreContext.

Source

pub fn stack_limit(&self) -> u8

The offset of the stack_limit field of VMStoreContext.

Source

pub fn gc_heap(&self) -> u8

The offset of the gc_heap field of VMStoreContext.

Source

pub fn last_wasm_exit_trampoline_fp(&self) -> u8

The offset of the last_wasm_exit_trampoline_fp field of VMStoreContext.

Source

pub fn last_wasm_exit_pc(&self) -> u8

The offset of the last_wasm_exit_pc field of VMStoreContext.

Source

pub fn last_wasm_entry_sp(&self) -> u8

The offset of the last_wasm_entry_sp field of VMStoreContext.

Source

pub fn last_wasm_entry_fp(&self) -> u8

The offset of the last_wasm_entry_fp field of VMStoreContext.

Source

pub fn last_wasm_entry_trap_handler(&self) -> u8

The offset of the last_wasm_entry_trap_handler field of VMStoreContext.

Source

pub fn stack_chain(&self) -> u8

The offset of the stack_chain field of VMStoreContext.

Source

pub fn store_data(&self) -> u8

The offset of the store_data field of VMStoreContext.

Source

pub fn async_guard_range(&self) -> u8

The offset of the async_guard_range field of VMStoreContext.

Source

pub fn component_context(&self) -> u8

The offset of the component_context field of VMStoreContext.

Source

pub fn current_thread(&self) -> u8

The offset of the current_thread field of VMStoreContext.

Source

pub fn align(&self) -> u8

The alignment of the VMStoreContext type.

Source

pub fn size(&self) -> u8

The size of the VMStoreContext type.

Source§

impl<P: PtrSize> VMStoreContext<P>

Offsets within a VMStoreContext that are not simply the offset of one of its fields, and so are not generated by for_each_vm_type!.

Source

pub fn gc_heap_base(&self) -> u8

The offset of the gc_heap.base field within a VMStoreContext.

Source

pub fn gc_heap_current_length(&self) -> u8

The offset of the gc_heap.current_length field within a VMStoreContext.

Source

pub fn component_context_slot(&self, i: u8) -> u8

The offset of the component_context[i] slot within a VMStoreContext.

Auto Trait Implementations§

§

impl<P> Freeze for VMStoreContext<P>
where P: Freeze,

§

impl<P> RefUnwindSafe for VMStoreContext<P>
where P: RefUnwindSafe,

§

impl<P> Send for VMStoreContext<P>
where P: Send,

§

impl<P> Sync for VMStoreContext<P>
where P: Sync,

§

impl<P> Unpin for VMStoreContext<P>
where P: Unpin,

§

impl<P> UnsafeUnpin for VMStoreContext<P>
where P: UnsafeUnpin,

§

impl<P> UnwindSafe for VMStoreContext<P>
where P: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.