proxygen
folly::pushmi::detail::tap_ Struct Reference

#include <tap.h>

Public Types

using properties = properties_t< Out >
 

Public Member Functions

requires ReceiveValue< SideEffects, const std::remove_reference_t< VN >... > &&ReceiveValue< Out, std::remove_reference_t< VN >... > void value (VN &&...vn)
 
requires ReceiveError< SideEffects, const E > &&ReceiveError< Out, E > void error (E e) noexcept
 
void done ()
 
requires FlowReceiver< SideEffects > &&FlowReceiver< Out > void starting (Up &&up)
 

Public Attributes

SideEffects sideEffects
 
Out out
 

Detailed Description

Definition at line 28 of file tap.h.

Member Typedef Documentation

Definition at line 33 of file tap.h.

Member Function Documentation

void folly::pushmi::detail::tap_::done ( )
inline

Definition at line 51 of file tap.h.

References folly::pushmi::detail::PUSHMI_TEMPLATE(), folly::pushmi::detail::requires(), and folly::pushmi::set_done.

51  {
53  set_done(out);
54  }
SideEffects sideEffects
Definition: tap.h:29
PUSHMI_INLINE_VAR constexpr __adl::set_done_fn set_done
requires ReceiveError<SideEffects, const E>&& ReceiveError<Out, E> void folly::pushmi::detail::tap_::error ( E  e)
inlinenoexcept

Definition at line 47 of file tap.h.

References folly::pushmi::detail::as_const, folly::gen::move, and folly::pushmi::set_error.

47  {
49  set_error(out, std::move(e));
50  }
constexpr detail::Map< Move > move
Definition: Base-inl.h:2567
PUSHMI_INLINE_VAR constexpr __adl::set_error_fn set_error
SideEffects sideEffects
Definition: tap.h:29
PUSHMI_INLINE_VAR constexpr struct folly::pushmi::detail::as_const_fn as_const
requires FlowReceiver<SideEffects>&& FlowReceiver<Out> void folly::pushmi::detail::tap_::starting ( Up &&  up)
inline

Definition at line 57 of file tap.h.

References folly::pushmi::set_starting.

58  {
59  // up is not made const because sideEffects is allowed to call methods on up
61  set_starting(out, (Up &&) up);
62  }
SideEffects sideEffects
Definition: tap.h:29
PUSHMI_INLINE_VAR constexpr __adl::set_starting_fn set_starting
requires ReceiveValue<SideEffects, const std::remove_reference_t<VN>...>&& ReceiveValue< Out, std::remove_reference_t<VN>...> void folly::pushmi::detail::tap_::value ( VN &&...  vn)
inline

Definition at line 40 of file tap.h.

References folly::pushmi::detail::as_const, folly::pushmi::detail::PUSHMI_TEMPLATE(), folly::pushmi::detail::requires(), and folly::pushmi::set_value.

40  {
42  set_value(out, (VN &&) vn...);
43  }
SideEffects sideEffects
Definition: tap.h:29
PUSHMI_INLINE_VAR constexpr struct folly::pushmi::detail::as_const_fn as_const
PUSHMI_INLINE_VAR constexpr __adl::set_value_fn set_value

Member Data Documentation

Out folly::pushmi::detail::tap_::out

Definition at line 30 of file tap.h.

SideEffects folly::pushmi::detail::tap_::sideEffects

Definition at line 29 of file tap.h.


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