GRPC C++  1.62.0
Public Types | Public Member Functions | Friends
grpc::experimental::ServerRpcInfo Class Reference

ServerRpcInfo represents the state of a particular RPC as it appears to an interceptor. More...

#include <server_interceptor.h>

Public Types

enum  Type { Type::UNARY, Type::CLIENT_STREAMING, Type::SERVER_STREAMING, Type::BIDI_STREAMING }
 Type categorizes RPCs by unary or streaming type. More...
 

Public Member Functions

 ~ServerRpcInfo ()
 
 ServerRpcInfo (const ServerRpcInfo &)=delete
 
ServerRpcInfooperator= (const ServerRpcInfo &)=delete
 
 ServerRpcInfo (ServerRpcInfo &&)=delete
 
ServerRpcInfooperator= (ServerRpcInfo &&)=delete
 
const char * method () const
 Return the fully-specified method name. More...
 
Type type () const
 Return the type of the RPC (unary or a streaming flavor) More...
 
ServerContextBaseserver_context ()
 Return a pointer to the underlying ServerContext structure associated with the RPC to support features that apply to it. More...
 

Friends

class internal::InterceptorBatchMethodsImpl
 
class grpc::ServerContextBase
 

Detailed Description

ServerRpcInfo represents the state of a particular RPC as it appears to an interceptor.

It is created and owned by the library and passed to the CreateServerInterceptor method of the application's ServerInterceptorFactoryInterface implementation

Member Enumeration Documentation

◆ Type

Type categorizes RPCs by unary or streaming type.

Enumerator
UNARY 
CLIENT_STREAMING 
SERVER_STREAMING 
BIDI_STREAMING 

Constructor & Destructor Documentation

◆ ~ServerRpcInfo()

grpc::experimental::ServerRpcInfo::~ServerRpcInfo ( )
inline

◆ ServerRpcInfo() [1/2]

grpc::experimental::ServerRpcInfo::ServerRpcInfo ( const ServerRpcInfo )
delete

◆ ServerRpcInfo() [2/2]

grpc::experimental::ServerRpcInfo::ServerRpcInfo ( ServerRpcInfo &&  )
delete

Member Function Documentation

◆ method()

const char* grpc::experimental::ServerRpcInfo::method ( ) const
inline

Return the fully-specified method name.

◆ operator=() [1/2]

ServerRpcInfo& grpc::experimental::ServerRpcInfo::operator= ( const ServerRpcInfo )
delete

◆ operator=() [2/2]

ServerRpcInfo& grpc::experimental::ServerRpcInfo::operator= ( ServerRpcInfo &&  )
delete

◆ server_context()

ServerContextBase* grpc::experimental::ServerRpcInfo::server_context ( )
inline

Return a pointer to the underlying ServerContext structure associated with the RPC to support features that apply to it.

◆ type()

Type grpc::experimental::ServerRpcInfo::type ( ) const
inline

Return the type of the RPC (unary or a streaming flavor)

Friends And Related Function Documentation

◆ grpc::ServerContextBase

friend class grpc::ServerContextBase
friend

◆ internal::InterceptorBatchMethodsImpl


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