Module component

Module component 

Source
Expand description

Component module parsing, loading and execution

Structs§

Component
Pre-compiled component Component, which is cheapily-Cloneable
ComponentConfig
Component instance configuration
Ctx
Wasmtime Context for a component instance, with access to WASI context, HTTP context, and WRPC Invocation context. This is a low-level API and has to be paired with Component::new_with_linker.
CustomCtxComponent
The CustomCtxComponent is similar to Component, but it supports passing a custom context that implements the BaseCtx trait. This is useful for when you want to extend the context with additional host implementations or custom functionality.
Instance
Instantiated component
Limits
Component Environment Limits for more intricate resource control
MessagingGuestMessage0_3
A message originating from the guest

Enums§

Error
Wasmcloud error type
InvocationErrorKind
This represents a kind of wRPC invocation error
ReplacedInstanceTarget
Instance target, which is replaced in wRPC
WrpcServeEvent
Events sent by Component::serve_wrpc

Traits§

BaseCtx
The minimal implementation of a context that is required to run a component instance.
Bus
wasmcloud:bus/lattice@2.0.1 implementation
Bus1_0_0
wasmcloud:bus/lattice@1.0.0 implementation
Config
wasi:config/store implementation
Handler
A collection of traits that the host must implement
Identity
wasmcloud:identity/store implementation
InvocationErrorIntrospect
Implementations of this trait are able to introspect an error returned by wRPC invocations
Logging
wasi:logging/logging implementation
Messaging0_2
wasmcloud:messaging abstraction
Messaging0_3
wasmcloud:messaging abstraction
MessagingClient0_3
A connection to a message-exchange service (e.g., buffer, broker, etc.).
MessagingHostMessage0_3
A message with a binary payload and additional information
MinimalHandler
MinimalHandler represents the base traits that a handler must implement to be used with wasmcloud_runtime. It is a subset of the Handler trait, which includes many more traits for capability implementations when running in wasmCloud.
Secrets
wasmcloud:secrets implementation

Functions§

claims_token
Extracts and validates claims contained within a WebAssembly binary, if present
from_string_map
Creates limits from a string-based key-value map.

Type Aliases§

InvocationStream
This represents a Stream of incoming invocations. Each item represents processing of a single invocation.