Kagome
Polkadot Runtime Engine in C++17
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
messages.hpp
Go to the documentation of this file.
1
6
#ifndef KAGOME_MESSAGES_MESSAGES_HPP
7
#define KAGOME_MESSAGES_MESSAGES_HPP
8
9
#include <boost/system/error_code.hpp>
10
#include <functional>
11
#include <gsl/span>
12
#include <memory>
13
14
#include "
network/adapters/adapter_errors.hpp
"
15
#include "network/protobuf/api.v1.pb.h"
16
#include "
outcome/outcome.hpp
"
17
18
namespace
kagome::network
{
19
20
template
<
typename
T,
typename
RW>
21
struct
Message
{
22
using
ReadWriter
= RW;
23
T
data
;
24
};
25
26
template
<
typename
... T>
27
struct
MessagesSequence
{
28
std::tuple<T...>
msgs
;
29
30
template
<
typename
Q>
31
MessagesSequence
(Q &&...args) : msgs{std::forward<Q>(args)...} {}
32
};
33
34
}
// namespace kagome::network
35
36
#endif // KAGOME_MESSAGES_MESSAGES_HPP
kagome::network::Message
Definition:
messages.hpp:21
kagome::network::Message::ReadWriter
RW ReadWriter
Definition:
messages.hpp:22
outcome.hpp
kagome::network::MessagesSequence
Definition:
messages.hpp:27
adapter_errors.hpp
kagome::network::Message::data
T data
Definition:
messages.hpp:23
kagome::network::MessagesSequence::MessagesSequence
MessagesSequence(Q &&...args)
Definition:
messages.hpp:31
kagome::network
Definition:
author_api_impl.hpp:37
kagome::network::MessagesSequence::msgs
std::tuple< T... > msgs
Definition:
messages.hpp:28
core
network
messages
messages.hpp
Generated by
1.8.11