pub struct Cli {Show 42 fields
pub mode: Option<String>,
pub port: Option<String>,
pub udp_port: Option<String>,
pub jsonrpc_ws_port: Option<String>,
pub jsonrpc_tcp_port: Option<String>,
pub jsonrpc_http_port: Option<String>,
pub jsonrpc_cors: Option<String>,
pub jsonrpc_http_keep_alive: Option<String>,
pub log_file: Option<String>,
pub log_level: Option<String>,
pub log_conf: Option<String>,
pub config: Option<String>,
pub bootnodes: Option<String>,
pub netconf_dir: Option<String>,
pub public_address: Option<String>,
pub net_key: Option<String>,
pub start_mining: Option<String>,
pub mining_author: Option<String>,
pub ledger_cache_size: Option<String>,
pub db_cache_size: Option<String>,
pub enable_discovery: Option<String>,
pub node_table_timeout_s: Option<String>,
pub node_table_promotion_timeout_s: Option<String>,
pub test_mode: Option<String>,
pub db_compact_profile: Option<String>,
pub block_db_dir: Option<String>,
pub load_test_chain: Option<String>,
pub egress_queue_capacity: Option<String>,
pub egress_min_throttle: Option<String>,
pub egress_max_throttle: Option<String>,
pub get_logs_epoch_batch_size: Option<String>,
pub get_logs_filter_max_epoch_range: Option<String>,
pub get_logs_filter_max_limit: Option<String>,
pub get_logs_filter_max_block_number_range: Option<String>,
pub account_provider_refresh_time_ms: Option<String>,
pub dev_pos_private_key_encryption_password: Option<String>,
pub pos_started_as_voter: Option<String>,
pub light: bool,
pub archive: bool,
pub tg_archive: bool,
pub full: bool,
pub command: Option<Commands>,
}
Expand description
Conflux client
Fields§
§mode: Option<String>
Use the preset testing configurations. dev or test.
port: Option<String>
Specify the port for P2P connections.
udp_port: Option<String>
Specify the UDP port for peer discovery.
jsonrpc_ws_port: Option<String>
Specify the port for the WebSocket JSON-RPC API server.
jsonrpc_tcp_port: Option<String>
Specify the port for the TCP JSON-RPC API server.
jsonrpc_http_port: Option<String>
Specify the port for the HTTP JSON-RPC API server.
jsonrpc_cors: Option<String>
Specify CORS header for HTTP JSON-RPC API responses.
jsonrpc_http_keep_alive: Option<String>
Enable HTTP/1.1 keep alive header.
log_file: Option<String>
Specify the filename for the log. Stdout will be used by default if omitted.
log_level: Option<String>
Can be error/warn/info/debug/trace. Default is the info level.
log_conf: Option<String>
Sets a custom log config file.
config: Option<String>
Sets a custom config file.
bootnodes: Option<String>
Sets a custom list of bootnodes.
netconf_dir: Option<String>
Sets a custom directory for network configurations.
public_address: Option<String>
Sets a custom public address to be connected by others.
net_key: Option<String>
Sets a custom secret key to generate unique node ID.
start_mining: Option<String>
Start mining if set to true. Ensure that mining-author is set.
Set the address to receive mining rewards.
ledger_cache_size: Option<String>
Sets the ledger cache size.
db_cache_size: Option<String>
Sets the db cache size.
enable_discovery: Option<String>
Enable discovery protocol.
node_table_timeout_s: Option<String>
How often Conflux updates its peer table (default 300).
node_table_promotion_timeout_s: Option<String>
How long Conflux waits for promoting a peer to trustworthy (default 3 * 24 * 3600).
test_mode: Option<String>
Sets test mode for adding latency
db_compact_profile: Option<String>
Sets the compaction profile of RocksDB.
block_db_dir: Option<String>
Sets the root path of db.
load_test_chain: Option<String>
Sets the test chain json file.
egress_queue_capacity: Option<String>
Sets egress queue capacity of P2P network.
egress_min_throttle: Option<String>
Sets minimum throttling queue size of egress.
egress_max_throttle: Option<String>
Sets maximum throttling queue size of egress.
get_logs_epoch_batch_size: Option<String>
Sets the size of the epoch batches used during log filtering.
get_logs_filter_max_epoch_range: Option<String>
Sets the maximum number of allowed epochs during log filtering.
get_logs_filter_max_limit: Option<String>
Sets the maximum number of log entries returned during log filtering.
get_logs_filter_max_block_number_range: Option<String>
Sets the maximum number of allowed blocks during log filtering.
account_provider_refresh_time_ms: Option<String>
Sets the time after which accounts are re-read from disk.
dev_pos_private_key_encryption_password: Option<String>
Sets the encryption password for the pos private key file. It’s used to encrypt a new generated key or to decrypt an existing key file.
pos_started_as_voter: Option<String>
If true, the node will start PoS election and voting if it’s available.
light: bool
§archive: bool
§tg_archive: bool
§full: bool
§command: Option<Commands>
Trait Implementations§
source§impl Args for Cli
impl Args for Cli
source§fn group_id() -> Option<Id>
fn group_id() -> Option<Id>
ArgGroup::id
][crate::ArgGroup::id] for this set of argumentssource§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command
] so it can instantiate self
via
[FromArgMatches::update_from_arg_matches_mut
] Read moresource§impl FromArgMatches for Cli
impl FromArgMatches for Cli
source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches ) -> Result<Self, Error>
source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches ) -> Result<(), Error>
ArgMatches
to self
.source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches ) -> Result<(), Error>
ArgMatches
to self
.source§impl Parser for Cli
impl Parser for Cli
§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
§fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
Auto Trait Implementations§
impl Freeze for Cli
impl RefUnwindSafe for Cli
impl Send for Cli
impl Sync for Cli
impl Unpin for Cli
impl UnwindSafe for Cli
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
§impl<T> Conv for T
impl<T> Conv for T
source§impl<T> ElementSatisfy<ElementNoConstrain> for T
impl<T> ElementSatisfy<ElementNoConstrain> for T
fn to_constrain_object(&self) -> &ElementNoConstrain
fn to_constrain_object_mut(&mut self) -> &mut ElementNoConstrain
§impl<T> FmtForward for T
impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
self
to use its LowerExp
implementation when
Debug
-formatted.§fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
self
to use its LowerHex
implementation when
Debug
-formatted.§fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
self
to use its Octal
implementation when Debug
-formatted.§fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
self
to use its Pointer
implementation when
Debug
-formatted.§fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
self
to use its UpperExp
implementation when
Debug
-formatted.§fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
self
to use its UpperHex
implementation when
Debug
-formatted.§fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
self
and passes that borrow into the pipe function. Read more§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
self
and passes that borrow into the pipe function. Read more§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R ) -> R
§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
self
, then passes self.as_ref()
into the pipe function.§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
self
, then passes self.as_mut()
into the pipe
function.§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
self
, then passes self.deref()
into the pipe function.§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> Tap for T
impl<T> Tap for T
§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Borrow<B>
of a value. Read more§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
BorrowMut<B>
of a value. Read more§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
AsRef<R>
view of a value. Read more§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
AsMut<R>
view of a value. Read more§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Deref::Target
of a value. Read more§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Deref::Target
of a value. Read more§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
.tap()
only in debug builds, and is erased in release builds.§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
.tap_mut()
only in debug builds, and is erased in release
builds.§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
.tap_borrow()
only in debug builds, and is erased in release
builds.§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
.tap_borrow_mut()
only in debug builds, and is erased in release
builds.§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
.tap_ref()
only in debug builds, and is erased in release
builds.§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
.tap_ref_mut()
only in debug builds, and is erased in release
builds.§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
.tap_deref()
only in debug builds, and is erased in release
builds.