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

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

Detailed Description

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

Result type for service handlers (non server-streaming)

Provides a way to return either Response or grpc::Status

Definition at line 21 of file result.hpp.

Public Member Functions

 Result (Response &&response)
 Construct instance from Response, imply success status.
 
 Result (grpc::Status &&status)
 Construct instance from grpc::Status, only error status allowed.
 
 Result (const grpc::Status &status)
 Construct instance from grpc::Status, only error status allowed.
 

Constructor & Destructor Documentation

◆ Result() [1/3]

template<typename Response >
ugrpc::server::Result< Response >::Result ( Response && response)
inline

Construct instance from Response, imply success status.

Definition at line 24 of file result.hpp.

◆ Result() [2/3]

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

Construct instance from grpc::Status, only error status allowed.

Definition at line 27 of file result.hpp.

◆ Result() [3/3]

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

Construct instance from grpc::Status, only error status allowed.

Definition at line 32 of file result.hpp.


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