Skip to navigation

Function nemo_relay_resource_metrics_collect_poll

View as MarkdownOpen in Claude

Generated from cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-pii-redaction -p nemo-relay-ffi -p nemo-relay-types -p nemo-relay-plugin -p nemo-relay-worker-proto -p nemo-relay-worker.

#[unsafe(no_mangle)]pub unsafe extern "C" fn nemo_relay_resource_metrics_collect_poll(
    collection: *mut FfiResourceMetricsCollection,
    out_done: *mut bool,
    out_json: *mut *mut c_char,
) -> NemoRelayStatus

Check a collection without blocking. out_done is false while pending.

Once done, this function returns the collection status and, on success, a canonical JSON string owned by the caller. Free the string with nemo_relay_string_free. A completed result can be retrieved only once.

Safety

The collection must be live. Both output pointers must be writable. Do not free the handle while another thread is polling it.