Expand description
§wasmflow-transport
Wasmflow Transport contains the structures and methods for communicating across entity boundaries. It handles abstracting payload versions and implementations so they can be used easily.
The MessageTransport
struct normalizes wasmflow_packet::Packet
s for
the Wasmflow tools.
The TransportWrapper
wraps a MessageTransport
along with the port name
it originated from.
A TransportStream
is a stream of TransportWrapper
s.
Modules§
- error
- The crate’s error module;.
Structs§
- Transport
Json - A simplified JSON representation of a MessageTransport
- Transport
Map - A wrapper for a map of Strings to MessageTransport
- Transport
Wrapper - A TransportWrapper is a wrapper around a MessageTransport with the port name it originated from.
Enums§
- Failure
- A Failure message.
- Json
Error - The kinds of errors that a TransportJson can carry
- Message
Signal - Internal signals that need to be handled before propagating to a downstream consumer.
- Message
Transport - The MessageTransport is the primary way messages are sent around Wasmflow Networks and Schematics. It is the internal representation for normalized output Packet’s.
- Serialized
- A success message.
Constants§
- COMPONENT_
ERROR - The reserved port name to use when a component returns an error before it has a chance to send it to an output port.
- SYSTEM_
ID - The name of system-originating messages on a port, schematic, or origin.
Type Aliases§
- Error
- The crate’s Error type.