/// Serializes this environment to disk.
///
/// The resulting directory structure can be loaded back into
/// a new `NiDkgTestEnvironment` using the `new_from_dir` function.
Serializes this environment to disk.
The resulting directory structure can be loaded back into
a new `NiDkgTestEnvironment` using the `new_from_dir` function.
Serializes this environment to disk . The resulting directory structure can be loaded back into a new ` NiDkgTestEnvironment ` using the ` new_from_dir ` function .
pub fn save_to_dir(&self, toplevel_path: &Path) {
        for (node_id, crypto_component) in self.crypto_components.iter() {
            Self::copy_crypto_root(
                crypto_component.temp_dir_path(),
                &toplevel_path.join(node_id.to_string()),
            );
        }
        self.registry_data
            .write_to_file(toplevel_path.join("registry_data.pb"));
    }
pub fn save_to_dir ( & self , toplevel_path : & Path ) { for ( node_id , crypto_component ) in self . crypto_components . iter ( ) { Self :: copy_crypto_root ( crypto_component . temp_dir_path ( ) , & toplevel_path . join ( node_id . to_string ( ) ) , ) ; } self . registry_data . write_to_file ( toplevel_path . join ( " " ) ) ; }
Serializes this environment to disk.
Serializes this environment to disk .
&self
toplevel_path
&Path