Function grpcio_sys::grpc_call_cancel_with_status[][src]

pub unsafe extern "C" fn grpc_call_cancel_with_status(
    call: *mut grpc_call,
    status: Type,
    description: *const c_char,
    reserved: *mut c_void
) -> grpc_call_error
Expand description

Cancel an RPC. Can be called multiple times, from any thread. If a status has not been received for the call, set it to the status code and description passed in. Importantly, this function does not send status nor description to the remote endpoint. Note that \a description doesn’t need be a static string. It doesn’t need to be alive after the call to grpc_call_cancel_with_status completes.