Function pact_matching_ffi::models::message_pact::message_pact_get_message_iter[][src]

#[no_mangle]
pub extern "C" fn message_pact_get_message_iter(
    message_pact: *mut MessagePact
) -> *mut MessagePactMessageIterator
Expand description

Get an iterator over the messages of a message pact.

Safety

This iterator carries a pointer to the message pact, and must not outlive the message pact.

The message pact messages also must not be modified during iteration. If they are, the old iterator must be deleted and a new iterator created.

Error Handling

On failure, this function will return a NULL pointer.

This function may fail if any of the Rust strings contain embedded null (‘\0’) bytes.