rpc_api/
rpc.rs

1use std::fmt::Debug;
2
3use serde::de::DeserializeOwned;
4use serde::Serialize;
5use trait_set::trait_set;
6
7pub use proxy::Proxy;
8pub use proxy::Transport;
9
10pub mod handlers;
11pub mod conversions;
12pub mod http;
13mod proxy;
14pub mod reqwest_transport;
15pub mod properties;
16
17fn get_handler_key<Req>() -> String { std::any::type_name::<Req>().to_string() }
18
19trait_set! {
20    pub trait ReqResBound = Serialize + DeserializeOwned + Debug ;
21}
22
23pub fn rpc_version() -> String { "0.0.1".to_string() }