pub fn new(parent_dir: std::path::PathBuf) -> Self {
        let logger = LoggerConfig::default();
        Self {
            registry_client: RegistryClientConfig::default(),
            transport: TransportConfig::default(),
            state_manager: StateManagerConfig::new(parent_dir.join("state")),
            hypervisor: HypervisorConfig::default(),
            http_handler: HttpHandlerConfig::default(),
            metrics: MetricsConfig::default(),
            artifact_pool: ArtifactPoolTomlConfig::new(parent_dir.join("consensus_pool"), None),
            consensus: ConsensusConfig::default(),
            crypto: CryptoConfig::new(parent_dir.join("crypto")),
            logger: logger.clone(),
            orchestrator_logger: logger,
            message_routing: MessageRoutingConfig::default(),
            malicious_behaviour: MaliciousBehaviour::default(),
            firewall: FirewallConfig::default(),
            registration: RegistrationConfig::default(),
            nns_registry_replicator: NnsRegistryReplicatorConfig::default(),
        }
    }
/// Return a [Config] with default settings that put all paths under a
/// 'parent_dir', with the given 'subnet_id'.
///
/// It is an alternative way to construct a Config than parsing
/// a configuration file.
Return a [Config] with default settings that put all paths under a
'parent_dir', with the given 'subnet_id'.

It is an alternative way to construct a Config than parsing
a configuration file.
Return a [ Config ] with default settings that put all paths under a ' parent_dir ' with the given ' subnet_id ' . It is an alternative way to construct a Config than parsing a configuration file .
pub fn new(parent_dir: std::path::PathBuf) -> Self {
        let logger = LoggerConfig::default();
        Self {
            registry_client: RegistryClientConfig::default(),
            transport: TransportConfig::default(),
            state_manager: StateManagerConfig::new(parent_dir.join("state")),
            hypervisor: HypervisorConfig::default(),
            http_handler: HttpHandlerConfig::default(),
            metrics: MetricsConfig::default(),
            artifact_pool: ArtifactPoolTomlConfig::new(parent_dir.join("consensus_pool"), None),
            consensus: ConsensusConfig::default(),
            crypto: CryptoConfig::new(parent_dir.join("crypto")),
            logger: logger.clone(),
            orchestrator_logger: logger,
            message_routing: MessageRoutingConfig::default(),
            malicious_behaviour: MaliciousBehaviour::default(),
            firewall: FirewallConfig::default(),
            registration: RegistrationConfig::default(),
            nns_registry_replicator: NnsRegistryReplicatorConfig::default(),
        }
    }
pub fn new ( parent_dir : std :: path :: PathBuf ) -> Self { let logger = LoggerConfig :: default ( ) ; Self { registry_client : RegistryClientConfig :: default ( ) , transport : TransportConfig :: default ( ) , state_manager : StateManagerConfig :: new ( parent_dir . join ( " " ) ) , hypervisor : HypervisorConfig :: default ( ) , http_handler : HttpHandlerConfig :: default ( ) , metrics : MetricsConfig :: default ( ) , artifact_pool : ArtifactPoolTomlConfig :: new ( parent_dir . join ( " " ) , None ) , consensus : ConsensusConfig :: default ( ) , crypto : CryptoConfig :: new ( parent_dir . join ( " " ) ) , logger : logger . clone ( ) , orchestrator_logger : logger , message_routing : MessageRoutingConfig :: default ( ) , malicious_behaviour : MaliciousBehaviour :: default ( ) , firewall : FirewallConfig :: default ( ) , registration : RegistrationConfig :: default ( ) , nns_registry_replicator : NnsRegistryReplicatorConfig :: default ( ) , } }
Return a [Config] with default settings that put all paths under a
'parent_dir', with the given 'subnet_id'.
Return a [ Config ] with default settings that put all paths under a ' parent_dir ' with the given ' subnet_id ' .
parent_dir
std::path::PathBuf
parent_dir
std::path::PathBuf