Skip to main content

wire_transport_to_dial

Function wire_transport_to_dial 

Source
pub fn wire_transport_to_dial(wire: &TransportConfig) -> Option<TransportConfig>
Expand description

The single wire→dial reach codec (#274/#320): map one wire crate::stream_info::TransportConfig union arm to the local dialable crate::transport::TransportConfig. Returns None for an un-routable arm (e.g. an iroh reach with no relay). Shared by the streaming plane (reach_to_transport_config) and the RPC inference router (#320), so there is exactly ONE iroh/quic reach decoding.