Expand description
Component module parsing, loading and execution
Structs§
- Component
- Pre-compiled component Component, which is cheapily-Cloneable
- Component
Config - 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. - Custom
CtxComponent - The
CustomCtxComponentis similar toComponent, but it supports passing a custom context that implements theBaseCtxtrait. 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
- Messaging
Guest Message0_ 3 - A message originating from the guest
Enums§
- Error
- Wasmcloud error type
- Invocation
Error Kind - This represents a kind of wRPC invocation error
- Replaced
Instance Target - Instance target, which is replaced in wRPC
- Wrpc
Serve Event - 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.1implementation- Bus1_
0_ 0 wasmcloud:bus/lattice@1.0.0implementation- Config
wasi:config/storeimplementation- Handler
- A collection of traits that the host must implement
- Identity
wasmcloud:identity/storeimplementation- Invocation
Error Introspect - Implementations of this trait are able to introspect an error returned by wRPC invocations
- Logging
wasi:logging/loggingimplementation- Messaging0_
2 wasmcloud:messagingabstraction- Messaging0_
3 wasmcloud:messagingabstraction- Messaging
Client0_ 3 - A connection to a message-exchange service (e.g., buffer, broker, etc.).
- Messaging
Host Message0_ 3 - A message with a binary payload and additional information
- Minimal
Handler MinimalHandlerrepresents the base traits that a handler must implement to be used withwasmcloud_runtime. It is a subset of theHandlertrait, which includes many more traits for capability implementations when running in wasmCloud.- Secrets
wasmcloud:secretsimplementation
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§
- Invocation
Stream - This represents a Stream of incoming invocations. Each item represents processing of a single invocation.