Skip to main content

write_discovery_file

Function write_discovery_file 

Source
pub fn write_discovery_file(info: &DaemonInfo) -> Result<()>
Expand description

Write the discovery file atomically (write-to-temp then rename).

§Errors

Returns an error if the state directory cannot be created or the file cannot be written.