Skip to main content

Module url

Module url 

Source
Expand description

Transport URL parsing.

Transport URLs identify a peer or listening endpoint for a multi-party protocol session:

  • inproc://<name> — in-process channel keyed by name
  • mock://<name> — deterministic mock transport
  • tcp://<host>:<port> — future confium-net-tcp crate
  • tcp+tls://<host>:<port> — future TLS-wrapped TCP
  • quic://<host>:<port> — future confium-net-quic crate
  • quic4://<host>:<port> — IPv4-only QUIC
  • quic6://<host>:<port> — IPv6-only QUIC
  • ws://<host>:<port>/<path> — future confium-net-ws crate
  • wss://<host>:<port>/<path> — future TLS-wrapped WebSocket

This module owns the list of recognized scheme names so that adding a new transport in a separate crate does not require editing the parser — only registering a crate::TransportKind that advertises the scheme. Schemes not in KNOWN_SCHEMES are rejected early with a clear error, rather than silently passing through as “no transport registered”.

Structs§

TransportUrl
A parsed transport URL.

Constants§

KNOWN_SCHEMES
Every scheme Confium knows about, built-in or reserved for a planned sibling crate. A URL whose scheme is not in this list is rejected at parse time.