|
rpc.hpp 0.8.1
Simple RPC Header-Only Library
|
Static Public Member Functions | |
| static std::string | to_bytes (nlohmann::json &&serial_obj) |
| static std::optional< nlohmann::json > | from_bytes (std::string &&bytes) |
| static nlohmann::json | empty_object () |
| template<typename R , typename... Args> | |
| static nlohmann::json | serialize_pack (const detail::packed_func< R, Args... > &pack) |
| template<typename R , typename... Args> | |
| static detail::packed_func< R, Args... > | deserialize_pack (const nlohmann::json &serial_obj) |
| static std::string | get_func_name (const nlohmann::json &serial_obj) |
| static rpc_exception | extract_exception (const nlohmann::json &serial_obj) |
| static void | set_exception (nlohmann::json &serial_obj, const rpc_exception &ex) |
| template<typename T > | |
| static nlohmann::json | serialize (const T &val)=delete |
| template<typename T > | |
| static T | deserialize (const nlohmann::json &serial_obj)=delete |