Function qpid_proton_sys::pn_message_set_content_encoding [−][src]
pub unsafe extern "C" fn pn_message_set_content_encoding(
msg: *mut pn_message_t,
encoding: *const c_char
) -> i32
Expand description
Set the content_encoding for a message. The supplied content_encoding pointer must either be NULL or reference a NUL terminated string. When the pointer is NULL, the content_encoding is set to NULL. When the pointer is non NULL, the contents are copied into the message. Returns zero on success or an error code on failure