Kagome
Polkadot Runtime Engine in C++17
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>
12 
13 namespace kagome::network {
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
virtual outcome::result< StateResponse > onStateRequest(const StateRequest &request) const =0