#[repr(transparent)]
pub struct StoreContextMut<'a, T>(_);
Expand description

A temporary handle to a &mut Store<T>.

This type is sutable for AsContextMut or AsContext trait bounds on methods if desired. For more information, see Store.

Implementations

Access the underlying data owned by this Store.

Same as Store::data.

Access the underlying data owned by this Store.

Same as Store::data_mut.

Returns the underlying Engine this store is connected to.

Perform garbage collection of ExternRefs.

Same as Store::gc.

Returns the fuel consumed by this store.

For more information see Store::fuel_consumed.

Inject more fuel into this store to be consumed when executing wasm code.

For more information see Store::add_fuel

Synthetically consume fuel from this store.

For more information see Store::consume_fuel

Configures this Store to trap whenever fuel runs out.

For more information see Store::out_of_fuel_trap

Configures this Store to yield while executing futures whenever fuel runs out.

For more information see Store::out_of_fuel_async_yield

Sets the epoch deadline to a certain number of ticks in the future.

For more information see Store::set_epoch_deadline.

Configures epoch-deadline expiration to trap.

For more information see Store::epoch_deadline_trap.

Available on crate feature async only.

Configures epoch-deadline expiration to yield to the async caller and the update the deadline.

For more information see Store::epoch_deadline_async_yield_and_update.

Trait Implementations

The host information associated with the Store, aka the T in Store<T>. Read more
Returns the store context that this type provides access to.
Returns the store context that this type provides access to.
Converts to this type from the input type.
The returned type after indexing.
Performs the indexing (container[index]) operation. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.