Clio develop
The XRP Ledger API server.
Loading...
Searching...
No Matches
rpc::SomeContextProcessWithInput Concept Reference

A process function that expects both some Input and a Context. More...

#include <Concepts.hpp>

Concept definition

template<typename T>
concept rpc::SomeContextProcessWithInput = requires(T a, typename T::Input in, typename T::Output out, Context const& ctx) {
{ a.process(in, ctx) } -> std::same_as<HandlerReturnType<decltype(out)>>;
}
A process function that expects both some Input and a Context.
Definition Concepts.hpp:72
std::expected< OutputType, Status > HandlerReturnType
Return type for each individual handler.
Definition Types.hpp:81

Detailed Description

A process function that expects both some Input and a Context.