pub fn save(dir: &Path, settings: &NetworkSettings) -> Result<(), String>
Write the network file (mode 0600 on Unix).