#[no_mangle]
pub extern "C" fn pactffi_sync_http_get_provider_state(
    interaction: *const SynchronousHttp,
    index: c_uint
) -> *const ProviderState
Expand description

Get a copy of the provider state at the given index from this interaction.

§Safety

The returned structure must be deleted with provider_state_delete.

Since it is a copy, the returned structure may safely outlive the SynchronousHttp.

§Error Handling

On failure, this function will return a variant other than Success.

This function may fail if the index requested is out of bounds, or if any of the Rust strings contain embedded null (‘\0’) bytes.