Struct wasmtime::StoreContext
source · #[repr(transparent)]pub struct StoreContext<'a, T>(_);
Expand description
Implementations§
source§impl<'a, T> StoreContext<'a, T>
impl<'a, T> StoreContext<'a, T>
sourcepub fn data(&self) -> &T
pub fn data(&self) -> &T
Access the underlying data owned by this Store
.
Same as Store::data
.
sourcepub fn fuel_consumed(&self) -> Option<u64>
pub fn fuel_consumed(&self) -> Option<u64>
Returns the fuel consumed by this store.
For more information see Store::fuel_consumed
.
Trait Implementations§
source§impl<T> AsContext for StoreContext<'_, T>
impl<T> AsContext for StoreContext<'_, T>
source§fn as_context(&self) -> StoreContext<'_, T>
fn as_context(&self) -> StoreContext<'_, T>
Returns the store context that this type provides access to.