Enum ckb_app_config::AppConfig [−][src]
pub enum AppConfig {
CKB(Box<CKBAppConfig>),
Miner(Box<MinerAppConfig>),
}Expand description
The parsed config file.
CKB process reads ckb.toml or ckb-miner.toml, depending what subcommand to be executed.
Variants
CKB(Box<CKBAppConfig>)The parsed ckb.toml.
Tuple Fields of CKB
0: Box<CKBAppConfig>Miner(Box<MinerAppConfig>)The parsed ckb-miner.toml.
Tuple Fields of Miner
0: Box<MinerAppConfig>Implementations
Reads the config file for the subcommand.
This will reads the ckb-miner.toml in the CKB directory for ckb miner, and ckb.toml
for all other subcommands.
Gets metrics options.
Gets memory tracker options.
Gets chain spec.
Unpacks the parsed ckb.toml config file.
Panics when this is a parsed ckb-miner.toml.
Unpacks the parsed ckb-miner.toml config file.
Panics when this is a parsed ckb.toml.
Set the binary name with full path.