Rate this Page

Transports#

Channels abstract over multiple underlying transports. Each transport implements the same Tx<M> / Rx<M> traits, but differs in how messages are carried.

All transports share the same framing and acknowledgement semantics (length-prefixed frames, seq/ack for exactly-once delivery), except the Local transport which uses a plain in-process mpsc and does not involve network acks.

tcp, unix, and metatls are built on the shared net stack (NetTx / NetRx) which handles outbox management, seq/ack, retransmission, and reconnection with backoff. local and sim implement the traits directly.

Available transports:

  • Local — in-process only

  • TCP — length-prefixed over sockets

  • Unix — Unix domain sockets

  • MetaTLS — TCP wrapped in TLS

  • Sim — simulation for testing

see also: tx/rx api, frames