Struct tendermint::config::RpcConfig[][src]

pub struct RpcConfig {
Show fields pub laddr: Address, pub cors_allowed_origins: Vec<CorsOrigin>, pub cors_allowed_methods: Vec<CorsMethod>, pub cors_allowed_headers: Vec<CorsHeader>, pub grpc_laddr: Option<Address>, pub grpc_max_open_connections: u64, pub unsafe_commands: bool, pub max_open_connections: u64, pub max_subscription_clients: u64, pub max_subscriptions_per_client: u64, pub timeout_broadcast_tx_commit: Timeout, pub max_body_bytes: u64, pub max_header_bytes: u64, pub tls_cert_file: Option<PathBuf>, pub tls_key_file: Option<PathBuf>, pub pprof_laddr: Option<Address>,
}
Expand description

Tendermint config.toml file’s [rpc] section

Fields

laddr: Address

TCP or UNIX socket address for the RPC server to listen on

cors_allowed_origins: Vec<CorsOrigin>

A list of origins a cross-domain request can be executed from Default value [] disables cors support Use ["*"] to allow any origin

cors_allowed_methods: Vec<CorsMethod>

A list of methods the client is allowed to use with cross-domain requests

cors_allowed_headers: Vec<CorsHeader>

A list of non simple headers the client is allowed to use with cross-domain requests

grpc_laddr: Option<Address>

TCP or UNIX socket address for the gRPC server to listen on NOTE: This server only supports /broadcast_tx_commit

grpc_max_open_connections: u64

Maximum number of simultaneous GRPC connections. Does not include RPC (HTTP&WebSocket) connections. See max_open_connections.

unsafe_commands: bool

Activate unsafe RPC commands like /dial_seeds and /unsafe_flush_mempool

max_open_connections: u64

Maximum number of simultaneous connections (including WebSocket). Does not include gRPC connections. See grpc_max_open_connections.

max_subscription_clients: u64

Maximum number of unique clientIDs that can /subscribe.

max_subscriptions_per_client: u64

Maximum number of unique queries a given client can /subscribe to.

timeout_broadcast_tx_commit: Timeout

How long to wait for a tx to be committed during /broadcast_tx_commit.

max_body_bytes: u64

Maximum size of request body, in bytes

max_header_bytes: u64

Maximum size of request header, in bytes

tls_cert_file: Option<PathBuf>

The name of a file containing certificate that is used to create the HTTPS server.

tls_key_file: Option<PathBuf>

The name of a file containing matching private key that is used to create the HTTPS server.

pprof_laddr: Option<Address>

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

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

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.