pub struct RpcConfig {
pub listen_addr: SocketAddr,
pub request_timeout: Duration,
}Expand description
RpcConfig contains for the RPC server of the light node as well as RPC client related options.
Fields§
§listen_addr: SocketAddrThe address the RPC server will serve.
request_timeout: DurationThe duration after which any RPC request to tendermint node will time out.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RpcConfig
impl<'de> Deserialize<'de> for RpcConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for RpcConfig
impl RefUnwindSafe for RpcConfig
impl Send for RpcConfig
impl Sync for RpcConfig
impl Unpin for RpcConfig
impl UnwindSafe for RpcConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more