pub fn add_rpc(&mut self, name: &str, addr: SocketAddr) -> ConfigResult<()> {
        self.err_rpc_exists(name)?;
        assert!(self.rpc.insert(String::from(name), addr).is_none());
        Ok(())
    }
/// Add an RPC config entry based on TCP port usage.
///
/// Args:
/// * `name`: The name to associate the config with.
/// * `addr`: The TCP socket address to use for the RPC listener.
Add an RPC config entry based on TCP port usage.
Args:
`name`: The name to associate the config with.
`addr`: The TCP socket address to use for the RPC listener.
Add an RPC config entry based on TCP port usage . Args : ` name ` : The name to associate the config with . ` addr ` : The TCP socket address to use for the RPC listener .
pub fn add_rpc(&mut self, name: &str, addr: SocketAddr) -> ConfigResult<()> {
        self.err_rpc_exists(name)?;
        assert!(self.rpc.insert(String::from(name), addr).is_none());
        Ok(())
    }
pub fn add_rpc ( & mut self , name : & str , addr : SocketAddr ) -> ConfigResult < ( ) > { self . err_rpc_exists ( name ) ? ; assert ! ( self rpc insert ( String from ( name ) addr ) is_none ( ) ) ; Ok ( ( ) ) }
Add an RPC config entry based on TCP port usage.
Add an RPC config entry based on TCP port usage .
&mut self
name
&str
addr
SocketAddr
&mut self
name
&str
addr
SocketAddr