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.
Auto Trait Implementations§
impl<'a, T> !RefUnwindSafe for StoreContext<'a, T>
impl<'a, T> Send for StoreContext<'a, T>where T: Sync,
impl<'a, T> Sync for StoreContext<'a, T>where T: Sync,
impl<'a, T> Unpin for StoreContext<'a, T>
impl<'a, T> !UnwindSafe for StoreContext<'a, T>
Blanket Implementations§
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