Function grpcio_sys::grpc_channel_create
source · pub unsafe extern "C" fn grpc_channel_create(
target: *const c_char,
creds: *mut grpc_channel_credentials,
args: *const grpc_channel_args
) -> *mut grpc_channel
Expand description
Creates a secure channel using the passed-in credentials. Additional channel level configuration MAY be provided by grpc_channel_args, though the expectation is that most clients will want to simply pass NULL. The user data in ‘args’ need only live through the invocation of this function. However, if any args of the ‘pointer’ type are passed, then the referenced vtable must be maintained by the caller until grpc_channel_destroy terminates. See grpc_channel_args definition for more on this.