Type Definition grpcio_sys::grpc_credentials_plugin_metadata_cb [−][src]
type grpc_credentials_plugin_metadata_cb = Option<unsafe extern "C" fn(user_data: *mut c_void, creds_md: *const grpc_metadata, num_creds_md: usize, status: Type, error_details: *const c_char)>;
Callback function to be called by the metadata credentials plugin implementation when the metadata is ready.
- user_data is the opaque pointer that was passed in the get_metadata method of the grpc_metadata_credentials_plugin (see below).
- creds_md is an array of credentials metadata produced by the plugin. It may be set to NULL in case of an error.
- num_creds_md is the number of items in the creds_md array.
- status must be GRPC_STATUS_OK in case of success or another specific error code otherwise.
- error_details contains details about the error if any. In case of success it should be NULL and will be otherwise ignored.