C++ Actor Framework  0.18
Public Types | Public Member Functions | Static Public Attributes | List of all members
caf::policy::single_response< ResponseType > Class Template Reference

Trivial policy for handling a single result in a response_handler. More...

#include <single_response.hpp>

Collaboration diagram for caf::policy::single_response< ResponseType >:
Collaboration graph

Public Types

using response_type = ResponseType
 
template<class Fun >
using type_checker = detail::type_checker< response_type, Fun >
 

Public Member Functions

 single_response (message_id mid) noexcept
 
 single_response (single_response &&) noexcept=default
 
single_responseoperator= (single_response &&) noexcept=default
 
template<class Self , class F , class OnError >
void await (Self *self, F &&f, OnError &&g) const
 
template<class Self , class F , class OnError >
void then (Self *self, F &&f, OnError &&g) const
 
template<class Self , class F , class OnError >
void receive (Self *self, F &&f, OnError &&g) const
 
message_id id () const noexcept
 

Static Public Attributes

static constexpr bool is_trivial = true
 

Detailed Description

template<class ResponseType>
class caf::policy::single_response< ResponseType >

Trivial policy for handling a single result in a response_handler.


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