#[no_mangle]
pub extern "C" fn pactffi_message_metadata_iter_next(
    iter: *mut MessageMetadataIterator
) -> *mut MessageMetadataPair
Expand description

Get the next key and value out of the iterator, if possible.

The returned pointer must be deleted with pactffi_message_metadata_pair_delete.

§Safety

The underlying data must not change during iteration. This function must only ever be called from a foreign language. Calling it from a Rust function that has a Tokio runtime in its call stack can result in a deadlock.

§Error Handling

If no further data is present, returns NULL.