Function grpcio_sys::grpc_server_shutdown_and_notify[][src]

pub unsafe extern "C" fn grpc_server_shutdown_and_notify(
    server: *mut grpc_server,
    cq: *mut grpc_completion_queue,
    tag: *mut c_void
)

Begin shutting down a server. After completion, no new calls or connections will be admitted. Existing calls will be allowed to complete. Send a GRPC_OP_COMPLETE event when there are no more calls being serviced. Shutdown is idempotent, and all tags will be notified at once if multiple grpc_server_shutdown_and_notify calls are made. ‘cq’ must have been registered to this server via grpc_server_register_completion_queue.