Struct openethereum::Configuration
source · [−]pub struct Configuration {
pub args: Args,
}
Expand description
Configuration for the OpenEthereum client.
Fields
args: Args
Arguments to be interpreted.
Implementations
sourceimpl Configuration
impl Configuration
sourcepub fn parse_cli<S: AsRef<str>>(command: &[S]) -> Result<Self, ArgsError>
pub fn parse_cli<S: AsRef<str>>(command: &[S]) -> Result<Self, ArgsError>
Parses a configuration from a list of command line arguments.
Example
let _cfg = openethereum::Configuration::parse_cli(&["--light", "--chain", "kovan"]).unwrap();
pub(crate) fn into_command(self) -> Result<Execute, String>
fn vm_type(&self) -> Result<VMType, String>
fn miner_extras(&self) -> Result<MinerExtras, String>
fn engine_signer(&self) -> Result<Address, String>
fn format(&self) -> Result<Option<DataFormat>, String>
fn cache_config(&self) -> CacheConfig
sourcepub fn logger_config(&self) -> LogConfig
pub fn logger_config(&self) -> LogConfig
returns logger config
fn chain(&self) -> Result<SpecType, String>
fn is_dev_chain(&self) -> Result<bool, String>
fn max_peers(&self) -> u32
fn ip_filter(&self) -> Result<IpFilter, String>
fn min_peers(&self) -> u32
fn max_pending_peers(&self) -> u32
fn snapshot_peers(&self) -> u32
fn work_notify(&self) -> Vec<String>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
fn accounts_config(&self) -> Result<AccountsConfig, String>
fn stratum_options(&self) -> Result<Option<Options>, String>
fn miner_options(&self) -> Result<MinerOptions, String>
fn pool_limits(&self) -> Result<Options, String>
fn pool_verification_options(&self) -> Result<Options, String>
fn secretstore_config(&self) -> Result<SecretStoreConfiguration, String>
fn gas_pricer_config(&self) -> Result<GasPricerConfig, String>
fn extra_data(&self) -> Result<Bytes, String>
fn init_reserved_nodes(&self) -> Result<Vec<String>, String>
fn net_addresses(&self) -> Result<(SocketAddr, Option<SocketAddr>), String>
fn net_config(&self) -> Result<NetworkConfiguration, String>
fn network_id(&self) -> Option<u64>
fn rpc_apis(&self) -> String
fn cors(cors: &str) -> Option<Vec<String>>
fn rpc_cors(&self) -> Option<Vec<String>>
fn hosts(&self, hosts: &str, interface: &str) -> Option<Vec<String>>
fn parse_hosts(hosts: &str) -> Option<Vec<String>>
fn rpc_hosts(&self) -> Option<Vec<String>>
fn ws_hosts(&self) -> Option<Vec<String>>
fn ws_origins(&self) -> Option<Vec<String>>
fn ipc_config(&self) -> Result<IpcConfiguration, String>
fn http_config(&self) -> Result<HttpConfiguration, String>
fn ws_config(&self) -> Result<WsConfiguration, String>
fn metrics_config(&self) -> Result<MetricsConfiguration, String>
fn snapshot_config(&self) -> Result<SnapshotConfiguration, String>
fn network_settings(&self) -> Result<NetworkSettings, String>
fn directories(&self) -> Directories
fn ipc_path(&self) -> String
fn interface(&self, interface: &str) -> String
fn rpc_interface(&self) -> String
fn ws_interface(&self) -> String
fn metrics_interface(&self) -> String
fn secretstore_interface(&self) -> String
fn secretstore_http_interface(&self) -> String
fn secretstore_self_secret(&self) -> Result<Option<NodeSecretKey>, String>
fn secretstore_admin_public(&self) -> Result<Option<Public>, String>
fn secretstore_nodes(&self) -> Result<BTreeMap<Public, (String, u16)>, String>
fn stratum_interface(&self) -> String
fn rpc_enabled(&self) -> bool
fn ws_enabled(&self) -> bool
fn metrics_enabled(&self) -> bool
fn metrics_prefix(&self) -> String
fn secretstore_enabled(&self) -> bool
fn secretstore_http_enabled(&self) -> bool
fn secretstore_auto_migrate_enabled(&self) -> bool
fn secretstore_acl_check_contract_address(
&self
) -> Result<Option<SecretStoreContractAddress>, String>
fn secretstore_service_contract_address(
&self
) -> Result<Option<SecretStoreContractAddress>, String>
fn secretstore_service_contract_srv_gen_address(
&self
) -> Result<Option<SecretStoreContractAddress>, String>
fn secretstore_service_contract_srv_retr_address(
&self
) -> Result<Option<SecretStoreContractAddress>, String>
fn secretstore_service_contract_doc_store_address(
&self
) -> Result<Option<SecretStoreContractAddress>, String>
fn secretstore_service_contract_doc_sretr_address(
&self
) -> Result<Option<SecretStoreContractAddress>, String>
fn secretstore_key_server_set_contract_address(
&self
) -> Result<Option<SecretStoreContractAddress>, String>
fn verifier_settings(&self) -> VerifierSettings
Trait Implementations
sourceimpl Debug for Configuration
impl Debug for Configuration
sourceimpl PartialEq<Configuration> for Configuration
impl PartialEq<Configuration> for Configuration
sourcefn eq(&self, other: &Configuration) -> bool
fn eq(&self, other: &Configuration) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &Configuration) -> bool
fn ne(&self, other: &Configuration) -> bool
This method tests for !=
.
impl StructuralPartialEq for Configuration
Auto Trait Implementations
impl RefUnwindSafe for Configuration
impl Send for Configuration
impl Sync for Configuration
impl Unpin for Configuration
impl UnwindSafe for Configuration
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more