Struct tendermint_config::RpcConfig

source ·
pub struct RpcConfig {
Show 16 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§

source§

impl Clone for RpcConfig

source§

fn clone(&self) -> RpcConfig

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for RpcConfig

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for RpcConfig

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl PartialEq for RpcConfig

source§

fn eq(&self, other: &RpcConfig) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Serialize for RpcConfig

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Eq for RpcConfig

source§

impl StructuralPartialEq for RpcConfig

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,