Skip to main content

Module transport

Module transport 

Source
Expand description

Transports and address resolution.

A Transport carries a message into a mailbox and is registered as an SCXML Event I/O Processor under its type IRI, which <send type="..."> selects; the runtime lists every registered transport in _ioprocessors. M2 ships the in-process LocalTransport.

The Directory maps an address to the mailbox that serves it. Addresses hosted on this node are resolved first; any other address goes to the Resolver registered for its IRI scheme. Resolution depends only on the address.

Structs§

Directory
The resolvers of non-local addresses, keyed by IRI scheme.
LocalTransport
The in-process transport: the SCXML Event I/O Processor (http://www.w3.org/TR/scxml/#SCXMLEventProcessor, alias scxml).
ResolveError
An address the directory could not resolve.
TransportError
A delivery failure; the outbox keeps the send and retries it.
Transports
The registered transports, by type IRI and alias.

Traits§

Resolver
Resolves addresses of one IRI scheme to mailboxes.
Transport
The transport contract: an SCXML Event I/O Processor that delivers into mailboxes.