#[no_mangle]
pub extern "C" fn pactffi_pact_interaction_as_synchronous_message(
    interaction: *const PactInteraction
) -> *const SynchronousMessage
Expand description

Casts this interaction to a SynchronousMessage interaction. Returns a NULL pointer if the interaction can not be casted to a SynchronousMessage interaction (for instance, it is a http interaction). The returned pointer must be freed with pactffi_sync_message_delete when no longer required.

§Safety

This function is safe as long as the interaction pointer is a valid pointer.

§Errors

On any error, this function will return a NULL pointer.