C++ Actor Framework 0.19
Loading...
Searching...
No Matches
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 , class OnError >
std::enable_if_t< T::is_non_blocking > await (F f, OnError g)
 
template<class T = traits, class F >
std::enable_if_t< detail::has_call_error_handler_v< ActorType > &&T::is_non_blocking > await (F f)
 
template<class T = traits, class F , class OnError >
std::enable_if_t< T::is_non_blocking > then (F f, OnError g)
 
template<class T = traits, class F >
std::enable_if_t< detail::has_call_error_handler_v< ActorType > &&T::is_non_blocking > then (F f)
 
template<class T >
flow::assert_scheduled_actor_hdr_t< flow::single< T > > as_single () &&
 
template<class T >
flow::assert_scheduled_actor_hdr_t< flow::observable< T > > as_observable () &&
 
template<class T = traits, class F = none_t, class OnError = none_t, class = std::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 = std::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 = std::enable_if_t<T::is_trivial>>
void receive (OnError g, catch_all< F > f)
 
template<class T = policy_type, class = std::enable_if_t<T::is_trivial>>
message_id id () const noexcept
 
actor_type * self () noexcept
 
policy_type & policy () 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: