libcarla/include/system/rpc/this_handler.inl
2024-10-18 13:19:59 +08:00

15 lines
361 B
C++

namespace rpc {
template <typename T> void this_handler_t::respond_error(T &&err_obj) {
error_ = detail::pack(std::forward<T>(err_obj));
throw detail::handler_error();
}
template <typename T> void this_handler_t::respond(T &&resp_obj) {
resp_ = detail::pack(std::forward<T>(resp_obj));
//throw detail::handler_spec_response();
}
} /* rpc */