Kagome
Polkadot Runtime Engine in C++17
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
state_protocol_observer.hpp
Go to the documentation of this file.
1
6
#ifndef KAGOME_STATE_PROTOCOL_OBSERVER_HPP
7
#define KAGOME_STATE_PROTOCOL_OBSERVER_HPP
8
9
#include <
outcome/outcome.hpp
>
10
#include "
network/types/state_request.hpp
"
11
#include "
network/types/state_response.hpp
"
12
13
namespace
kagome::network
{
17
class
StateProtocolObserver
{
18
public
:
19
virtual
~StateProtocolObserver
() =
default
;
20
26
virtual
outcome::result<StateResponse>
onStateRequest
(
27
const
StateRequest
&request)
const
= 0;
28
};
29
}
// namespace kagome::network
30
31
#endif // KAGOME_STATE_PROTOCOL_OBSERVER_HPP
kagome::network::StateProtocolObserver::onStateRequest
virtual outcome::result< StateResponse > onStateRequest(const StateRequest &request) const =0
state_request.hpp
outcome.hpp
state_response.hpp
kagome::network::StateProtocolObserver
Definition:
state_protocol_observer.hpp:17
kagome::network::StateProtocolObserver::~StateProtocolObserver
virtual ~StateProtocolObserver()=default
kagome::network
Definition:
author_api_impl.hpp:37
kagome::network::StateRequest
Definition:
state_request.hpp:17
core
network
state_protocol_observer.hpp
Generated by
1.8.11