MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / instance_type

Method instance_type

crates/wasmtime/src/runtime/component/instance.rs:1115–1120  ·  view source on GitHub ↗

Returns the type at which the underlying component will be instantiated. This contains the instantiated type information which was determined by the Linker.

(&self)

Source from the content-addressed store, hash-verified

1113 /// instantiated. This contains the instantiated type information which
1114 /// was determined by the Linker.
1115 pub fn instance_type(&self) -> InstanceType<'_> {
1116 InstanceType {
1117 types: &self.component.types(),
1118 resources: Some(&self.resource_types),
1119 }
1120 }
1121
1122 /// Returns the underlying engine.
1123 pub fn engine(&self) -> &Engine {

Callers

nothing calls this directly

Calls 1

typesMethod · 0.45

Tested by

no test coverage detected