Expand description
§Omnia WASI Messaging
This crate provides the Messaging interface for the Omnia runtime.
§Interface
Implements the wasi:messaging WIT interface.
§Backend
- Default: In-memory broadcast channel using
tokio::sync::broadcast. Messages are only delivered to subscribers within the same process.
§Usage
Add this crate to your Cargo.toml and use it in your runtime configuration:
ⓘ
use omnia::runtime;
use omnia_wasi_messaging::MessagingDefault;
omnia::runtime!({
"messaging": MessagingDefault,
});§License
MIT OR Apache-2.0
§WASI Messaging
This module implements a runtime service for wasi:messaging
(https://github.com/WebAssembly/wasi-messaging).
Modules§
- default_
impl - Default in-memory implementation for wasi-messaging
Macros§
- omnia_
wasi_ view - Implementation of the
WasiMessagingViewtrait for the store context.
Structs§
- Client
Proxy - Proxy for a messaging client.
- Message
Proxy - Proxy for a message.
- Messaging
Default - Default implementation for
wasi:messaging. - Messaging
Request Reply - Auto-generated bindings for an instance a component which
implements the world
messaging-request-reply. - Metadata
- Metadata associated with a message.
- Reply
- Reply information for a message.
- Request
Options - Options for messaging requests.
- Wasi
Messaging - Host-side service for
wasi:messaging. - Wasi
Messaging CtxView - View into
WasiMessagingCtximplementation andResourceTable.
Enums§
- Error
- Errors that can occur when using the messaging interface.
Traits§
- Client
- Messaging client trait.
- Message
- Providers implement the
Messagetrait to allow the host to interact with different backend messaging systems. - Wasi
Messaging Ctx - A trait which provides internal WASI Messaging context.
- Wasi
Messaging View - A trait which provides internal WASI Messaging state.
Type Aliases§
- Future
Result - Result type for asynchronous operations.
- Result
- Result type for messaging operations.
- Subscriptions
- Stream of message proxies.