GRPC Core  9.0.0
Data Structures | Functions
status_util.cc File Reference
#include <grpc/support/port_platform.h>
#include "src/core/lib/channel/status_util.h"
#include "src/core/lib/gpr/useful.h"

Data Structures

struct  status_string_entry
 

Functions

bool grpc_status_code_from_string (const char *status_str, grpc_status_code *status)
 If status_str is a valid status string, sets status to the corresponding status value and returns true. More...
 
const char * grpc_status_code_to_string (grpc_status_code status)
 Returns the string form of status, or "UNKNOWN" if invalid. More...
 

Function Documentation

◆ grpc_status_code_from_string()

bool grpc_status_code_from_string ( const char *  status_str,
grpc_status_code status 
)

If status_str is a valid status string, sets status to the corresponding status value and returns true.

◆ grpc_status_code_to_string()

const char* grpc_status_code_to_string ( grpc_status_code  status)

Returns the string form of status, or "UNKNOWN" if invalid.