|
bool | Read (Request &request) |
| Await and read the next incoming message.
|
|
void | Finish (const Response &response) |
| Complete the RPC successfully.
|
|
void | FinishWithError (const grpc::Status &status) override |
| Complete the RPC with an error.
|
|
| InputStream (impl::CallParams &&call_params, impl::RawReader< Request, Response > &stream) |
| For internal use only.
|
|
| InputStream (InputStream &&)=delete |
|
InputStream & | operator= (InputStream &&)=delete |
|
bool | IsFinished () const override |
|
| CallAnyBase (impl::CallParams &¶ms) |
|
grpc::ServerContext & | GetContext () |
|
std::string_view | GetCallName () const |
| Name of the call. Consists of service and method names.
|
|
tracing::Span & | GetSpan () |
|
template<typename Request, typename Response>
class ugrpc::server::InputStream< Request, Response >
Controls a request stream -> single response RPC.
This class is not thread-safe except for GetContext
.
The RPC is cancelled on destruction unless the stream has been finished.
If any method throws, further methods must not be called on the same stream, except for GetContext
.
Definition at line 119 of file rpc.hpp.