Struct nyar_wasm::WasiInstance
source · pub struct WasiInstance {
pub module: WasiModule,
pub resources: BTreeMap<Identifier, WasiResource>,
pub functions: BTreeMap<Identifier, WasiFunction>,
}
Fields§
§module: WasiModule
§resources: BTreeMap<Identifier, WasiResource>
language_name: wasi_name
functions: BTreeMap<Identifier, WasiFunction>
Implementations§
source§impl WasiInstance
impl WasiInstance
pub fn new<M>(module: M) -> Selfwhere
M: Into<WasiModule>,
pub fn insert(&mut self, wasi: &WasiType)
pub fn dependencies(&self, dict: &DependentGraph) -> BTreeSet<WasiType>
Trait Implementations§
source§impl AddAssign<WasiInstance> for CanonicalWasi
impl AddAssign<WasiInstance> for CanonicalWasi
source§fn add_assign(&mut self, rhs: WasiInstance)
fn add_assign(&mut self, rhs: WasiInstance)
Performs the
+=
operation. Read moresource§impl AddAssign<WasiResource> for WasiInstance
impl AddAssign<WasiResource> for WasiInstance
source§fn add_assign(&mut self, rhs: WasiResource)
fn add_assign(&mut self, rhs: WasiResource)
Performs the
+=
operation. Read moreAuto Trait Implementations§
impl Freeze for WasiInstance
impl RefUnwindSafe for WasiInstance
impl Send for WasiInstance
impl Sync for WasiInstance
impl Unpin for WasiInstance
impl UnwindSafe for WasiInstance
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