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: String

RPC 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: usize

Max request body size in bytes.

threads: Option<usize>

Number of RPC worker threads.

modules: Vec<Module>

Enabled RPC modules.

reject_ill_transactions: bool

Rejects txs with scripts that might trigger known bugs

enable_deprecated_rpc: bool

Whether 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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

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 resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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.