userver: ugrpc::server::Reader< Request > Class Template Reference
Loading...
Searching...
No Matches
ugrpc::server::Reader< Request > Class Template Referenceabstract

#include <userver/ugrpc/server/stream.hpp>

Detailed Description

template<class Request>
class ugrpc::server::Reader< Request >

Interface to read client's requests.

This class is not thread-safe

If any method throws, further methods must not be called on the same stream.

Definition at line 16 of file stream.hpp.

+ Inheritance diagram for ugrpc::server::Reader< Request >:

Public Member Functions

virtual bool Read (Request &request)=0
 Await and read the next incoming message.
 

Member Function Documentation

◆ Read()

template<class Request >
virtual bool ugrpc::server::Reader< Request >::Read ( Request & request)
pure virtual

Await and read the next incoming message.

Parameters
requestwhere to put the request on success
Returns
true on success, false on end-of-input
Exceptions
ugrpc::server::RpcErroron an RPC error

Implemented in ugrpc::server::InputStream< Request, Response >, and ugrpc::server::BidirectionalStream< Request, Response >.


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