Function grpcio_sys::grpc_secure_channel_create[][src]

pub unsafe extern "C" fn grpc_secure_channel_create(
    creds: *mut grpc_channel_credentials,
    target: *const c_char,
    args: *const grpc_channel_args,
    reserved: *mut c_void
) -> *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.