Function nemo_relay_register_conditional_middleware_guardrail
Function nemo_relay_register_conditional_middleware_guardrail
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_register_conditional_middleware_guardrail(
name: *const c_char,
kinds_json: *const c_char,
registration_name: *const c_char,
cb: NemoRelayConditionalMiddlewareGuardrailCb,
user_data: *mut c_void,
free_fn: NemoRelayFreeFn,
) -> NemoRelayStatus
Register a global conditional middleware guardrail.
Safety
String pointers must be valid for the call. Callback input strings are borrowed for each invocation only. A non-null callback result transfers ownership to Relay and must be allocated compatibly with nemo_relay_string_free. The callback and user data remain owned by Relay until deregistration.