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

pub struct RpcConfig {
    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 tls_cert_file: Option<PathBuf>,
    pub tls_key_file: Option<PathBuf>,
}

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.

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.

Trait Implementations

impl Clone for RpcConfig[src]

impl Debug for RpcConfig[src]

impl<'de> Deserialize<'de> for RpcConfig[src]

impl Serialize for RpcConfig[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Conv for T

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

impl<T> FmtForward for T

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pipe for T

impl<T> PipeAsRef for T

impl<T> PipeBorrow for T

impl<T> PipeDeref for T

impl<T> PipeRef for T

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Tap for T

impl<T, U> TapAsRef<U> for T where
    U: ?Sized

impl<T, U> TapBorrow<U> for T where
    U: ?Sized

impl<T> TapDeref for T

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> TryConv for T

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,