RESTinio
Loading...
Searching...
No Matches
restinio::async_chain::impl::on_next_result_visitor_t< Extra_Data_Factory > Struct Template Reference

Helper type to be used as handler of variant values in std::visit. More...

#include <common.hpp>

Public Member Functions

void operator() (const generic_async_request_scheduler_t< Extra_Data_Factory > &handler) const
void operator() (const no_more_schedulers_t &) const

Public Attributes

unique_async_handling_controller_t< Extra_Data_Factory > & m_controller

Detailed Description

template<typename Extra_Data_Factory>
struct restinio::async_chain::impl::on_next_result_visitor_t< Extra_Data_Factory >

Helper type to be used as handler of variant values in std::visit.

If there is the next async scheduler to be called it will be called. If it returns schedule_result_t::failure, then negative response will be generated and processing will be stopped.

If no_more_schedulers_t is here, then negative response will be generated.

Since
v.0.7.0

Definition at line 254 of file common.hpp.

Member Function Documentation

◆ operator()() [1/2]

template<typename Extra_Data_Factory>
void restinio::async_chain::impl::on_next_result_visitor_t< Extra_Data_Factory >::operator() ( const generic_async_request_scheduler_t< Extra_Data_Factory > & handler) const
inline

Definition at line 259 of file common.hpp.

◆ operator()() [2/2]

template<typename Extra_Data_Factory>
void restinio::async_chain::impl::on_next_result_visitor_t< Extra_Data_Factory >::operator() ( const no_more_schedulers_t & ) const
inline

Definition at line 281 of file common.hpp.

Member Data Documentation

◆ m_controller

template<typename Extra_Data_Factory>
unique_async_handling_controller_t< Extra_Data_Factory >& restinio::async_chain::impl::on_next_result_visitor_t< Extra_Data_Factory >::m_controller

Definition at line 256 of file common.hpp.


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