Module pact_ffi::models::sync_message
source · Expand description
V4 Synchronous request/response messages
Functions§
- Destroy the
Message
being pointed to. - Generate the request contents of a
SynchronousMessage
as aMessageContents
pointer. - Generate the response contents of a
SynchronousMessage
as aMessageContents
pointer. - Get a copy of the description.
- Get the number of response messages in the
SynchronousMessage
. - Get a copy of the provider state at the given index from this message.
- Get an iterator over provider states.
- Get the request contents of an
SynchronousMessage
as aMessageContents
pointer. - Get the request contents of a
SynchronousMessage
as a pointer to an array of bytes. - Get the length of the request contents of a
SynchronousMessage
. - Get the request contents of a
SynchronousMessage
in string form. - Get the response contents of an
SynchronousMessage
as aMessageContents
pointer. - Get the response contents of a
SynchronousMessage
as a pointer to an array of bytes. - Get the length of the response contents of a
SynchronousMessage
. - Get the response contents of a
SynchronousMessage
in string form. - Get a mutable pointer to a newly-created default message on the heap.
- Write the
description
field on theSynchronousMessage
. - Sets the request contents of the message as an array of bytes.
- Sets the request contents of the message.
- Sets the response contents of the message at the given index as an array of bytes. If index is greater than the number of responses in the message, the responses will be padded with default values.
- Sets the response contents of the message as a string. If index is greater than the number of responses in the message, the responses will be padded with default values.