Kagome
Polkadot Runtime Engine in C++17
kagome::application::mode::RecoveryMode Class Referencefinal

Mode for recover state to provided block. More...

#include <recovery_mode.hpp>

Inheritance diagram for kagome::application::mode::RecoveryMode:
Collaboration diagram for kagome::application::mode::RecoveryMode:

Public Member Functions

 RecoveryMode (std::function< int()> &&runner)
 
int run () const override
 Runs application in this mode. More...
 
- Public Member Functions inherited from kagome::application::Mode
virtual ~Mode ()=default
 

Private Attributes

std::function< int()> runner_
 

Detailed Description

Mode for recover state to provided block.

Definition at line 16 of file recovery_mode.hpp.

Constructor & Destructor Documentation

kagome::application::mode::RecoveryMode::RecoveryMode ( std::function< int()> &&  runner)
inline

Definition at line 18 of file recovery_mode.hpp.

Member Function Documentation

int kagome::application::mode::RecoveryMode::run ( ) const
inlineoverridevirtual

Runs application in this mode.

Implements kagome::application::Mode.

Definition at line 20 of file recovery_mode.hpp.

Member Data Documentation

std::function<int()> kagome::application::mode::RecoveryMode::runner_
private

Definition at line 25 of file recovery_mode.hpp.


The documentation for this class was generated from the following file: