GRPC Core  43.0.0
Data Fields
grpc_event Struct Reference

The result of an operation. More...

#include <grpc_types.h>

Data Fields

grpc_completion_type type
 The type of the completion. More...
 
int success
 If the grpc_completion_type is GRPC_OP_COMPLETE, this field indicates whether the operation was successful or not; 0 in case of failure and non-zero in case of success. More...
 
void * tag
 The tag passed to grpc_call_start_batch etc to start this operation. More...
 

Detailed Description

The result of an operation.

Returned by a completion queue when the operation started with tag.

Field Documentation

◆ success

int grpc_event::success

If the grpc_completion_type is GRPC_OP_COMPLETE, this field indicates whether the operation was successful or not; 0 in case of failure and non-zero in case of success.

If grpc_completion_type is GRPC_QUEUE_SHUTDOWN or GRPC_QUEUE_TIMEOUT, this field is guaranteed to be 0

◆ tag

void* grpc_event::tag

The tag passed to grpc_call_start_batch etc to start this operation.

Only* GRPC_OP_COMPLETE has a tag. For all other grpc_completion_type values, tag is uninitialized.

◆ type

grpc_completion_type grpc_event::type

The type of the completion.


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