rippled
Loading...
Searching...
No Matches
Work.h
1#pragma once
2
3#include <boost/beast/http/message.hpp>
4#include <boost/beast/http/string_body.hpp>
5
6namespace xrpl {
7
8namespace detail {
9
10using response_type = boost::beast::http::response<boost::beast::http::string_body>;
11
12class Work
13{
14public:
15 virtual ~Work() = default;
16
17 virtual void
18 run() = 0;
19
20 virtual void
21 cancel() = 0;
22};
23
24} // namespace detail
25
26} // namespace xrpl
virtual void run()=0
virtual void cancel()=0
virtual ~Work()=default
boost::beast::http::response< boost::beast::http::string_body > response_type
Definition Work.h:10
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:5