pub(crate) fn add(child: &NexusChild) -> Result<(), std::io::Error> {
        let mut cfg = ChildStatusConfig {
            status: HashMap::new(),
        };
        cfg.status.insert(child.name.clone(), child.state());
        ChildStatusConfig::do_save(Some(cfg))
    }
/// Add the child to the configuration and then save it.
/// The configuration is updated on a status change and expects the child to
/// already be listed as a nexus child. However, when a child is added,
/// the status is changed before it is added to the nexus children list.
/// Therefore, we have to explicitly add the child to the configuration
/// here.
Add the child to the configuration and then save it.
The configuration is updated on a status change and expects the child to
already be listed as a nexus child. However, when a child is added,
the status is changed before it is added to the nexus children list.
Therefore, we have to explicitly add the child to the configuration
here.
Add the child to the configuration and then save it . The configuration is updated on a status change and expects the child to already be listed as a nexus child . However when a child is added the status is changed before it is added to the nexus children list . Therefore we have to explicitly add the child to the configuration here .
pub(crate) fn add(child: &NexusChild) -> Result<(), std::io::Error> {
        let mut cfg = ChildStatusConfig {
            status: HashMap::new(),
        };
        cfg.status.insert(child.name.clone(), child.state());
        ChildStatusConfig::do_save(Some(cfg))
    }
pub ( crate ) fn add ( child : & NexusChild ) -> Result < ( ) , std :: io :: Error > { let mut cfg = ChildStatusConfig { status : HashMap :: new ( ) , } ; cfg . status . insert ( child . name . clone ( ) , child . state ( ) ) ; ChildStatusConfig :: do_save ( Some ( cfg ) ) }
Add the child to the configuration and then save it.
Add the child to the configuration and then save it .
child
&NexusChild