Register RPC services and accept incoming client connections.
Learn more: Implementing a service
|
| enum class | pw::rpc2::MethodType : uint8_t { kUnary = 0
, kServerStreaming = 1
, kClientStreaming = 2
, kBidirectionalStreaming = 3
} |
| |
|
|
constexpr bool | pw::rpc2::HasServerStream (MethodType type) |
| | True if the server streams responses: server and bidirectional streaming.
|
| |
|
constexpr bool | pw::rpc2::HasClientStream (MethodType type) |
| | True if the client streams requests: client and bidirectional streaming.
|
| |
◆ MethodType
The type of an RPC method.
Bit 0 is set if the server streams responses, and bit 1 if the client streams requests.