Future that resolves to a connected Client. Returned by Client::Connect().
◆ Pend()
Connects (if created from a connector), performs the handshake, and starts the client's connection task.
- Returns
kOk with the connected Client.
kDisconnected if the connector's Connect() failed (the transport's error is logged) or the connection closed during the handshake.
kProtocolError if the peer sent an invalid or unexpected handshake packet, or negotiated an incompatible protocol version. The reason is logged.
kResourceExhausted if the connection task could not be allocated.
The documentation for this class was generated from the following file:
- pw_rpc2/cpp/public/pw_rpc2/client.h