#include <userver/ugrpc/server/result.hpp>
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. | |
|
inline |
Construct instance from Response, imply success status.
Definition at line 24 of file result.hpp.
|
inline |
Construct instance from grpc::Status, only error status allowed.
Definition at line 27 of file result.hpp.
|
inline |
Construct instance from grpc::Status, only error status allowed.
Definition at line 32 of file result.hpp.