pub struct RunArgs {
pub config: Box<CKBAppConfig>,
pub consensus: Consensus,
pub block_assembler_advanced: bool,
pub skip_chain_spec_check: bool,
pub overwrite_chain_spec: bool,
pub chain_spec_hash: Byte32,
pub indexer: bool,
pub rich_indexer: bool,
pub daemon: bool,
}
Expand description
Parsed command line arguments for ckb run
.
Fields§
§config: Box<CKBAppConfig>
Parsed ckb.toml
.
consensus: Consensus
Loaded consensus.
block_assembler_advanced: bool
Whether allow advanced block assembler options.
skip_chain_spec_check: bool
Whether skip chain spec hash check
overwrite_chain_spec: bool
Whether overwrite the chain spec hash in the database with RunArgs::chain_spec_hash
chain_spec_hash: Byte32
Hash of serialized configured chain spec
indexer: bool
Whether start indexer, default false
rich_indexer: bool
Whether start rich-indexer, default false
daemon: bool
Whether start in daemon mode
Auto Trait Implementations§
impl !Freeze for RunArgs
impl RefUnwindSafe for RunArgs
impl Send for RunArgs
impl Sync for RunArgs
impl Unpin for RunArgs
impl UnwindSafe for RunArgs
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more