Skip to main content
Pigweed's logo Pigweed
code_xml
  1. Home
  2. Reference
  3. C/C++
  4. pw::rpc2::internal::FutureBase Class Reference
Loading...
Searching...
No Matches
pw::rpc2::internal::FutureBase Class Reference

Overview

Reusable base class for futures that delegates state tracking (kEmpty, kPending, kComplete) to pw::async2::FutureState.

Inheritance diagram for pw::rpc2::internal::FutureBase:
pw::rpc2::ReserveWriteFuture pw::rpc2::internal::ReadFutureBase pw::rpc2::internal::UnaryFutureBase pw::rpc2::ReadFuture< Message > pw::rpc2::internal::ResponseFutureBase pw::rpc2::UnaryFuture< Request, Response > pw::rpc2::ResponseFuture< ConstBuf > pw::rpc2::ResponseFuture< Response >

Public Member Functions

 FutureBase (const FutureBase &)=delete
 
FutureBase & operator= (const FutureBase &)=delete
 
constexpr bool is_pendable () const
 
constexpr bool is_complete () const
 

Protected Member Functions

constexpr FutureBase (async2::FutureState::Pending)
 
constexpr FutureBase (async2::FutureState state)
 
constexpr FutureBase (FutureBase &&) noexcept=default
 
constexpr FutureBase & operator= (FutureBase &&) noexcept=default
 
constexpr void mark_pending ()
 
void mark_complete ()
 

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