type.h
Go to the documentation of this file.
1 //-------------------------------------------------------------------
2 // Nano RPC
3 // https://github.com/tdv/nanorpc
4 // Created: 05.2018
5 // Copyright (C) 2018 tdv
6 //-------------------------------------------------------------------
7 
8 #ifndef __NANO_RPC_CORE_TYPE_H__
9 #define __NANO_RPC_CORE_TYPE_H__
10 
11 // STD
12 #include <cstdint>
13 #include <functional>
14 #include <map>
15 #include <stdexcept>
16 #include <string>
17 #include <vector>
18 
19 namespace nanorpc
20 {
21 namespace core
22 {
23 namespace type
24 {
25 
26 
27 using id = std::uint64_t;
28 using buffer = std::vector<std::uint8_t>;
29 using executor = std::function<buffer (buffer)>;
30 using executor_map = std::map<std::string, executor>;
31 using error_handler = std::function<void (std::exception_ptr)>;
32 
33 
34 } // namespace type
35 } // namespace core
36 } // namespace nanorpc
37 
38 
39 #endif // !__NANO_RPC_CORE_TYPE_H__
nanorpc
Definition: client.h:30
nanorpc::core::type::error_handler
std::function< void(std::exception_ptr)> error_handler
Definition: type.h:31
nanorpc::core::type::buffer
std::vector< std::uint8_t > buffer
Definition: type.h:28
nanorpc::core::type::executor
std::function< buffer(buffer)> executor
Definition: type.h:29
nanorpc::core::detail::pack::meta::type
type
Definition: pack_meta.h:26
nanorpc::core::type::executor_map
std::map< std::string, executor > executor_map
Definition: type.h:30


depthai
Author(s): Martin Peterlin
autogenerated on Sat Mar 22 2025 02:58:19