Crate wasmflow_transport

Source
Expand description

Maintenance

§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::Packets for the Wasmflow tools.

The TransportWrapper wraps a MessageTransport along with the port name it originated from.

A TransportStream is a stream of TransportWrappers.

Modules§

error
The crate’s error module;.

Structs§

TransportJson
A simplified JSON representation of a MessageTransport
TransportMap
A wrapper for a map of Strings to MessageTransport
TransportWrapper
A TransportWrapper is a wrapper around a MessageTransport with the port name it originated from.

Enums§

Failure
A Failure message.
JsonError
The kinds of errors that a TransportJson can carry
MessageSignal
Internal signals that need to be handled before propagating to a downstream consumer.
MessageTransport
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.