pub struct WasmComponent {
pub wasmtime_component: Component,
pub exim: ExIm,
pub decoded: DecodedWasm,
/* private fields */
}
Fields§
§wasmtime_component: Component
§exim: ExIm
§decoded: DecodedWasm
Implementations§
Source§impl WasmComponent
impl WasmComponent
pub async fn convert_core_module_to_component( wasm_path: &Path, output_parent: &Path, ) -> Result<Option<PathBuf>, Error>
pub fn new<P: AsRef<Path>>( wasm_path: P, engine: &Engine, component_exports_type_or_auto_detect: Option<ComponentExportsType>, ) -> Result<Self, DecodeError>
pub fn wit(&self) -> Result<String, Error>
pub fn exported_functions(&self, extensions: bool) -> &[FunctionMetadata]
pub fn imported_functions(&self) -> &[FunctionMetadata]
pub fn index_exported_functions( &self, ) -> Result<HashMap<FunctionFqn, ComponentExportIndex>, DecodeError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WasmComponent
impl !RefUnwindSafe for WasmComponent
impl Send for WasmComponent
impl Sync for WasmComponent
impl Unpin for WasmComponent
impl !UnwindSafe for WasmComponent
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> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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