Struct ckb_app_config::RpcConfig [−][src]
pub struct RpcConfig {
pub listen_address: String,
pub tcp_listen_address: Option<String>,
pub ws_listen_address: Option<String>,
pub max_request_body_size: usize,
pub threads: Option<usize>,
pub modules: Vec<Module>,
pub reject_ill_transactions: bool,
pub enable_deprecated_rpc: bool,
pub extra_well_known_lock_scripts: Vec<Script>,
pub extra_well_known_type_scripts: Vec<Script>,
}Expand description
RPC config options.
Fields
listen_address: StringRPC server listen addresses.
tcp_listen_address: Option<String>RPC TCP server listen addresses.
Only TCP and WS are supported to subscribe events via the Subscription RPC module.
ws_listen_address: Option<String>RPC WS server listen addresses.
Only TCP and WS are supported to subscribe events via the Subscription RPC module.
max_request_body_size: usizeMax request body size in bytes.
threads: Option<usize>Number of RPC worker threads.
modules: Vec<Module>Enabled RPC modules.
reject_ill_transactions: boolRejects txs with scripts that might trigger known bugs
enable_deprecated_rpc: boolWhether enable deprecated RPC methods.
Deprecated RPC methods are disabled by default.
extra_well_known_lock_scripts: Vec<Script>Customized extra well known lock scripts.
extra_well_known_type_scripts: Vec<Script>Customized extra well known type scripts.
Implementations
Checks whether the Net module is enabled.
Checks whether the Chain module is enabled.
Checks whether the Miner module is enabled.
Checks whether the Pool module is enabled.
Checks whether the Experiment module is enabled.
Checks whether the Stats module is enabled.
Checks whether the Subscription module is enabled.
Checks whether the IntegrationTest module is enabled.
Checks whether the Alert module is enabled.
Checks whether the Debug module is enabled.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Config
impl UnwindSafe for Config
Blanket Implementations
Mutably borrows from an owned value. Read more