Skip to main content
Pigweed's logo Pigweed
code_xml
  1. Home
  2. Reference
  3. C/C++
  4. pw_rpc2
  5. Server
  6. pw::rpc2::ControlFuture Class Reference
Loading...
Searching...
No Matches
pw::rpc2::ControlFuture Class Reference

Overview

Future returned by the thread-safe control operations on Server and Client.

Unlike other pw_rpc2 futures, which may only be used on the dispatcher thread, a ControlFuture may be created, moved, or dropped on any thread. Dropping a RegisterListener() future before it resolves withdraws the registration; Close() is already under way when it returns and continues even if its future is dropped.

Resolves to an RpcStatus. The codes each operation can return are documented on the Server or Client function that returns the future.

Public Types

using value_type = RpcStatus
 

Public Member Functions

 ControlFuture (ControlFuture &&other) noexcept
 
ControlFuture & operator= (ControlFuture &&other) noexcept
 
async2::Poll< RpcStatus > Pend (async2::Context &cx)
 
bool is_pendable () const
 
bool is_complete () const
 

Static Public Member Functions

static ControlFuture Resolved (RpcStatus status)
 Creates a ControlFuture that is already resolved with status.
 

Friends

class internal::ServerTask
 
class internal::ClientConnectionTask
 

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