pub struct Exports<'store> { /* private fields */ }
Available on crate features
runtime
and component-model
only.Expand description
Description of the exports of an Instance
.
This structure is created through the Instance::exports
method and is
used lookup exports by name from within an instance.
Implementations§
Source§impl<'store> Exports<'store>
impl<'store> Exports<'store>
Sourcepub fn root(&mut self) -> ExportInstance<'_, '_>
pub fn root(&mut self) -> ExportInstance<'_, '_>
Returns the “root” instance of this set of exports, or the items that are directly exported from the instance that this was created from.
Sourcepub fn instance(&mut self, name: &str) -> Option<ExportInstance<'_, '_>>
pub fn instance(&mut self, name: &str) -> Option<ExportInstance<'_, '_>>
Returns the items that the named instance exports.
This method will lookup the exported instance with the name name
from
this list of exports and return a descriptin of that instance’s
exports.
Trait Implementations§
Auto Trait Implementations§
impl<'store> Freeze for Exports<'store>
impl<'store> !RefUnwindSafe for Exports<'store>
impl<'store> Send for Exports<'store>
impl<'store> Sync for Exports<'store>
impl<'store> Unpin for Exports<'store>
impl<'store> !UnwindSafe for Exports<'store>
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