fn write_config(stash_node: &mut StashNode, config: &NetworkConfig) -> Result<(), Error> {
    let data = PersistentData::new(config.credential.clone(), config.has_ever_connected);
    let data_str = serde_json::to_string(&data).map_err(|e| format_err!("{}", e))?;
    stash_node.write_str(DATA, data_str)
}
/// Write the persisting values (not including network ID) of a network config to the provided
/// stash node.
Write the persisting values (not including network ID) of a network config to the provided
stash node.
Write the persisting values ( not including network ID ) of a network config to the provided stash node .
fn write_config(stash_node: &mut StashNode, config: &NetworkConfig) -> Result<(), Error> {
    let data = PersistentData::new(config.credential.clone(), config.has_ever_connected);
    let data_str = serde_json::to_string(&data).map_err(|e| format_err!("{}", e))?;
    stash_node.write_str(DATA, data_str)
}
fn write_config ( stash_node : & mut StashNode , config : & NetworkConfig ) -> Result < ( ) , Error > { let data = PersistentData :: new ( config . credential . clone ( ) , config . has_ever_connected ) ; let data_str = serde_json :: to_string ( & data ) . map_err ( | e | format_err ! ( " " e ) ) ? ; stash_node . write_str ( DATA , data_str ) }
Write the persisting values (not including network ID) of a network config to the provided
stash node.
Write the persisting values ( not including network ID ) of a network config to the provided stash node .
stash_node
&mut StashNode
config
&NetworkConfig
stash_node
&mut StashNode
config
&NetworkConfig