Struct wiggle::wasmtime_crate::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.
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
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more