Type Alias Nemo Relay Event Metadata Injector 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 NemoRelayEventMetadataInjectorCb = Option<unsafe extern "C" fn(user_data: *mut c_void, event: *const FfiEvent) -> *mut c_char>;

Callback for event metadata injection.

The returned string must contain a JSON object whose properties are proposed metadata additions. It transfers to Relay and is freed exactly once. Return null after setting the last error message to report a callback failure.

Aliased Type

pub enum NemoRelayEventMetadataInjectorCb {
    None,
    Some(unsafe extern "C" fn(*mut c_void, *const FfiEvent) -> *mut i8),
}

Variants

None

None

No value.

Some(unsafe extern "C" fn(*mut c_void, *const FfiEvent) -> *mut i8)

Some(unsafe extern "C" fn(*mut c_void, *const FfiEvent) -> *mut i8)

Some value of type T.