pub struct GuestCallData<'c, D: 'static, C> { /* private fields */ }
Expand description
Data structure that holds the common context for a guest call to a WASM component function.
Implementations§
Source§impl<'c, D: 'static, C> GuestCallData<'c, D, C>
impl<'c, D: 'static, C> GuestCallData<'c, D, C>
Sourcepub fn store(&self) -> StoreContext<'_, D>
pub fn store(&self) -> StoreContext<'_, D>
Returns the WASM runtime store context.
Sourcepub fn store_mut(&mut self) -> StoreContextMut<'_, D>
pub fn store_mut(&mut self) -> StoreContextMut<'_, D>
Returns a mutable reference to the WASM runtime store context.
Sourcepub fn interface(&self) -> &ForeignInterfacePath
pub fn interface(&self) -> &ForeignInterfacePath
Returns the fully-qualified WIT foreign interface path of the function being called.
Auto Trait Implementations§
impl<'c, D, C> Freeze for GuestCallData<'c, D, C>
impl<'c, D, C> !RefUnwindSafe for GuestCallData<'c, D, C>
impl<'c, D, C> Send for GuestCallData<'c, D, C>
impl<'c, D, C> Sync for GuestCallData<'c, D, C>
impl<'c, D, C> Unpin for GuestCallData<'c, D, C>
impl<'c, D, C> !UnwindSafe for GuestCallData<'c, D, C>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more