bitcoin_remote/
convert_table.rs

1crate::ix!();
2
3pub struct RPCConvertTable {
4    members:         HashSet<(String,i32)>,
5    members_by_name: HashSet<(String,String)>,
6}
7
8impl RPCConvertTable {
9    
10    pub fn convert_with_method_and_idx(&mut self, 
11        method: &str,
12        idx:    i32) -> bool {
13        
14        todo!();
15        /*
16            return (members.count(std::make_pair(method, idx)) > 0);
17        */
18    }
19    
20    pub fn convert_with_method_and_name(&mut self, 
21        method: &str,
22        name:   &str) -> bool {
23        
24        todo!();
25        /*
26            return (membersByName.count(std::make_pair(method, name)) > 0);
27        */
28    }
29    
30    pub fn new() -> Self {
31    
32        todo!();
33        /*
34
35
36            for (const auto& cp : vRPCConvertParams) {
37            members.emplace(cp.methodName, cp.paramIdx);
38            membersByName.emplace(cp.methodName, cp.paramName);
39        }
40        */
41    }
42}
43
44lazy_static!{
45    pub static ref RPC_CVT_TABLE: Mutex<RPCConvertTable> = Mutex::new(RPCConvertTable::new());
46}
47
48