proxygen
folly::pushmi::detail::switch_on_error_fn::on_error_impl< ErrorSelector > Struct Template Reference

Public Member Functions

requires Receiver< Out > &&Invocable< const ErrorSelector &, E > &&SenderTo<::folly::pushmi::invoke_result_t< ErrorSelector &, E >, Out > void operator() (Out &out, E &&e) const noexcept
 

Public Attributes

ErrorSelector es_
 

Detailed Description

template<class ErrorSelector>
struct folly::pushmi::detail::switch_on_error_fn::on_error_impl< ErrorSelector >

Definition at line 29 of file switch_on_error.h.

Member Function Documentation

template<class ErrorSelector >
requires Receiver<Out>&& Invocable<const ErrorSelector&, E>&& SenderTo<::folly::pushmi::invoke_result_t<ErrorSelector&, E>, Out> void folly::pushmi::detail::switch_on_error_fn::on_error_impl< ErrorSelector >::operator() ( Out &  out,
E &&  e 
) const
inlinenoexcept

Definition at line 34 of file switch_on_error.h.

References folly::pushmi::detail::switch_on_error_fn::on_error_impl< ErrorSelector >::es_, cpp.ast::next(), and folly::pushmi::submit.

34  {
35  static_assert(
36  ::folly::pushmi::NothrowInvocable<const ErrorSelector&, E>,
37  "switch_on_error - error selector function must be noexcept");
38  auto next = es_((E &&) e);
39  submit(next, out);
40  }
PUSHMI_INLINE_VAR constexpr __adl::do_submit_fn submit
def next(obj)
Definition: ast.py:58

Member Data Documentation

template<class ErrorSelector >
ErrorSelector folly::pushmi::detail::switch_on_error_fn::on_error_impl< ErrorSelector >::es_

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