Type Alias Nemo Relay Native Conditional Middleware Cb

View as Markdown

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.

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;

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.