proxygen
folly::pushmi::detail::via_fn::on_error_impl< Out > Struct Template Reference

Classes

struct  impl
 

Public Member Functions

template<class Data , class E >
void operator() (Data &data, E e) const noexcept
 

Detailed Description

template<class Out>
struct folly::pushmi::detail::via_fn::on_error_impl< Out >

Definition at line 75 of file via.h.

Member Function Documentation

template<class Out >
template<class Data , class E >
void folly::pushmi::detail::via_fn::on_error_impl< Out >::operator() ( Data data,
E  e 
) const
inlinenoexcept

Definition at line 85 of file via.h.

References folly::data(), folly::pushmi::make_receiver, folly::gen::move, and folly::pushmi::submit.

85  {
86  if (data.via_fn_base_ref().done) {
87  return;
88  }
89  data.via_fn_base_ref().done = true;
90  submit(
91  data.via_fn_base_ref().exec,
93  impl<E>{std::move(e), std::move(static_cast<Out&>(data))}));
94  }
constexpr detail::Map< Move > move
Definition: Base-inl.h:2567
constexpr auto data(C &c) -> decltype(c.data())
Definition: Access.h:71
PUSHMI_INLINE_VAR constexpr __adl::do_submit_fn submit
PUSHMI_INLINE_VAR constexpr struct folly::pushmi::make_receiver_fn make_receiver

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