pub fn write_discovery_file(path: &Path, url: &str, token: &str) -> Result<()>Expand description
Publish the bound URL + bearer token for local clients, atomically
and owner-only (the file carries the token). Written on every
successful bind; removed again by remove_discovery_file on
clean shutdown so stale files can’t point at a dead port.