Struct wasmtime::StoreContext
source · [−]#[repr(transparent)]pub struct StoreContext<'a, T>(_);
Expand description
Implementations
sourceimpl<'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
sourceimpl<T> AsContext for StoreContext<'_, T>
impl<T> AsContext for StoreContext<'_, T>
sourcefn as_context(&self) -> StoreContext<'_, T>
fn as_context(&self) -> StoreContext<'_, T>
Returns the store context that this type provides access to.
sourceimpl<'a, T: AsContext> From<&'a T> for StoreContext<'a, T::Data>
impl<'a, T: AsContext> From<&'a T> for StoreContext<'a, T::Data>
sourcefn from(t: &'a T) -> StoreContext<'a, T::Data>
fn from(t: &'a T) -> StoreContext<'a, T::Data>
Performs the conversion.
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more