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

The parsed ckb.toml.

Tuple Fields of CKB

0: Box<CKBAppConfig>

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 logger options.

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.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

TODO(doc): @quake

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.