tendermint_config

Struct 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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. 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

Source§

type Output = T

Should always be Self
Source§

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

Source§

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>,

Source§

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>,

Source§

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>,