userver: ugrpc::server::StreamingResult< Response > Class Template Reference
Loading...
Searching...
No Matches
ugrpc::server::StreamingResult< Response > Class Template Referencefinal

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

Detailed Description

template<typename Response>
class ugrpc::server::StreamingResult< Response >

Special result type for server-streaming service handlers.

Definition at line 61 of file result.hpp.

Public Member Functions

 StreamingResult (grpc::Status &&status)
 Construct instance from grpc::Status.
 
 StreamingResult (const grpc::Status &status)
 Construct instance from grpc::Status.
 
 StreamingResult (Response &&last_response)
 

Constructor & Destructor Documentation

◆ StreamingResult() [1/3]

template<typename Response >
ugrpc::server::StreamingResult< Response >::StreamingResult ( grpc::Status && status)
inline

Construct instance from grpc::Status.

Definition at line 64 of file result.hpp.

◆ StreamingResult() [2/3]

template<typename Response >
ugrpc::server::StreamingResult< Response >::StreamingResult ( const grpc::Status & status)
inline

Construct instance from grpc::Status.

Definition at line 67 of file result.hpp.

◆ StreamingResult() [3/3]

template<typename Response >
ugrpc::server::StreamingResult< Response >::StreamingResult ( Response && last_response)
inline

Construct instance with last response

Allows perform writing last response and coalesce it with status in a single step.

Definition at line 73 of file result.hpp.


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