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

Overview

Non-templated base class for ResponseFuture<Response>.

Inheritance diagram for pw::rpc2::internal::ResponseFutureBase:
pw::rpc2::internal::ReadFutureBase pw::rpc2::internal::FutureBase pw::rpc2::ResponseFuture< ConstBuf > pw::rpc2::ResponseFuture< Response >

Public Member Functions

void Cancel ()
 
- Public Member Functions inherited from pw::rpc2::internal::ReadFutureBase
 ReadFutureBase (const ReadFutureBase &)=delete
 
ReadFutureBase & operator= (const ReadFutureBase &)=delete
 
- Public Member Functions inherited from pw::rpc2::internal::FutureBase
 FutureBase (const FutureBase &)=delete
 
FutureBase & operator= (const FutureBase &)=delete
 
constexpr bool is_pendable () const
 
constexpr bool is_complete () const
 

Protected Member Functions

 ResponseFutureBase (IntrusivePtr< Call > &&call)
 
 ResponseFutureBase (ResponseFutureBase &&) noexcept=default
 
ResponseFutureBase & operator= (ResponseFutureBase &&) noexcept=default
 
- Protected Member Functions inherited from pw::rpc2::internal::ReadFutureBase
 ReadFutureBase (const IntrusivePtr< Call > &call)
 
 ReadFutureBase (IntrusivePtr< Call > &&call)
 
 ReadFutureBase (ReadFutureBase &&other) noexcept=default
 
ReadFutureBase & operator= (ReadFutureBase &&other) noexcept
 
async2::Poll< RpcResult< ConstBuf > > PendRaw (async2::Context &cx)
 
void PendAndDeserialize (async2::Context &cx, void *result_out, DeserializeFn deserialize)
 
- Protected Member Functions inherited from pw::rpc2::internal::FutureBase
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 ()
 

Member Function Documentation

◆ Cancel()

void pw::rpc2::internal::ResponseFutureBase::Cancel ( )
inline

Cancels the call: sends a cancellation to the server and completes the call locally with kCancelled. A pending or later Pend() resolves to kCancelled unless the response has already arrived. No-op if the call has already ended or this future has no call.


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