Type Alias Nemo Relay Conditional Middleware Guardrail Cb
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 NemoRelayConditionalMiddlewareGuardrailCb = Option<unsafe extern "C" fn(user_data: *mut c_void, kinds_json: *const c_char, registration_name: *const c_char) -> *mut c_char>;
Callback for a conditional middleware guardrail. kinds_json is a JSON array of configured runtime-registration kind strings. kinds_json and registration_name are borrowed for the callback invocation only. Returns NULL to enable the target or a reason string allocated compatibly with nemo_relay_string_free to disable it. Ownership of a non-null return value transfers to Relay.
Aliased Type
pub enum NemoRelayConditionalMiddlewareGuardrailCb {
None,
Some(unsafe extern "C" fn(*mut c_void, *const i8, *const i8) -> *mut i8),
}
Variants
None
None
No value.
Some(unsafe extern "C" fn(*mut c_void, *const i8, *const i8) -> *mut i8)
Some(unsafe extern "C" fn(*mut c_void, *const i8, *const i8) -> *mut i8)
Some value of type T.