CAF  0.17.3
Public Types | Public Member Functions | List of all members
caf::response_handle< ActorType, Policy > Class Template Reference

This helper class identifies an expected response message and enables request(...).then(...). More...

#include <response_handle.hpp>

Public Types

using actor_type = ActorType
 
using traits = actor_traits< actor_type >
 
using policy_type = Policy
 
using response_type = typename policy_type::response_type
 

Public Member Functions

 response_handle (const response_handle &)=delete
 
response_handleoperator= (const response_handle &)=delete
 
 response_handle (response_handle &&) noexcept=default
 
response_handleoperator= (response_handle &&) noexcept=delete
 
template<class... Ts>
 response_handle (actor_type *self, Ts &&... xs)
 
template<class T = traits, class F = none_t, class OnError = none_t, class = detail::enable_if_t<T::is_non_blocking>>
void await (F f, OnError g) const
 
template<class T = traits, class F = none_t, class = detail::enable_if_t<T::is_non_blocking>>
void await (F f) const
 
template<class T = traits, class F = none_t, class OnError = none_t, class = detail::enable_if_t<T::is_non_blocking>>
void then (F f, OnError g) const
 
template<class T = traits, class F = none_t, class = detail::enable_if_t<T::is_non_blocking>>
void then (F f) const
 
template<class T = traits, class F = none_t, class OnError = none_t, class = detail::enable_if_t<T::is_blocking>>
detail::is_handler_for_ef< OnError, errorreceive (F f, OnError g)
 
template<class T = traits, class OnError = none_t, class F = none_t, class = detail::enable_if_t<T::is_blocking>>
detail::is_handler_for_ef< OnError, errorreceive (OnError g, F f)
 
template<class T = policy_type, class OnError = none_t, class F = none_t, class E = detail::is_handler_for_ef<OnError, error>, class = detail::enable_if_t<T::is_trivial>>
void receive (OnError g, catch_all< F > f)
 
template<class T = policy_type, class = detail::enable_if_t<T::is_trivial>>
message_id id () const noexcept
 
actor_type * self () noexcept
 

Detailed Description

template<class ActorType, class Policy>
class caf::response_handle< ActorType, Policy >

This helper class identifies an expected response message and enables request(...).then(...).


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