proxygen
folly::pushmi::detail::switch_on_error_fn::out_impl< In, ErrorSelector > Struct Template Reference

Public Member Functions

requires Receiver< Out > auto operator() (Out out) const
 

Public Attributes

ErrorSelector es_
 

Detailed Description

template<class In, class ErrorSelector>
struct folly::pushmi::detail::switch_on_error_fn::out_impl< In, ErrorSelector >

Definition at line 43 of file switch_on_error.h.

Member Function Documentation

template<class In , class ErrorSelector >
requires Receiver<Out> auto folly::pushmi::detail::switch_on_error_fn::out_impl< In, ErrorSelector >::operator() ( Out  out) const
inline

Definition at line 47 of file switch_on_error.h.

References folly::gen::move, and folly::pushmi::on_error().

47  {
48  return ::folly::pushmi::detail::receiver_from_fn<In>()(
49  std::move(out),
50  // copy 'es' to allow multiple calls to submit
51  ::folly::pushmi::on_error(on_error_impl<ErrorSelector>{es_}));
52  }
constexpr detail::Map< Move > move
Definition: Base-inl.h:2567
auto on_error(Fns...fns) -> on_error_fn< Fns... >
Definition: boosters.h:273

Member Data Documentation

template<class In , class ErrorSelector >
ErrorSelector folly::pushmi::detail::switch_on_error_fn::out_impl< In, ErrorSelector >::es_

Definition at line 44 of file switch_on_error.h.


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