pub type NemoRelayNativeConditionalMiddlewareCb = unsafe extern "C" fn(user_data: *mut c_void, kinds_json: *const NemoRelayNativeString, registration_name: *const NemoRelayNativeString, out_reason: *mut *mut NemoRelayNativeString) -> NemoRelayStatus;Expand description
Native callback deciding whether a matching runtime registration is eligible.
kinds_json contains a JSON set of configured registration kinds and
registration_name is the target’s effective name. Return a host-allocated
reason through out_reason to disable the target, or leave it null to keep
the target enabled. The input strings are borrowed for the callback only.
Relay treats a non-OK status or invalid output as an allow decision.