Skip to main content

net_dest_class

Function net_dest_class 

Source
pub fn net_dest_class(
    host_literal: &str,
    partners: &BTreeSet<String>,
) -> &'static str
Expand description

⟨0.20⟩ The Net DESTINATION CLASS of a host literal (NET-DESTINATION-CLASS-DESIGN.md): known-telemetry (curated), known-partner (config net-partner OR a model host — a declared-ish external API), else unknown-host — the HONEST default (candor makes no claim; the security gate bites this). A partner set is per-project (config-declared). Never fabricated onto a safe class: an unresolved host is unknown-host. Mirrors candor-java’s Literals.netDestClass.