[][src]Function pulsar_sys::pulsar_consumer_unsubscribe

pub unsafe extern "C" fn pulsar_consumer_unsubscribe(
    consumer: *mut pulsar_consumer_t
) -> pulsar_result

Unsubscribe the current consumer from the topic.

This method will block until the operation is completed. Once the consumer is unsubscribed, no more messages will be received and subsequent new messages will not be retained for this consumer.

This consumer object cannot be reused.

@see asyncUnsubscribe @return Result::ResultOk if the unsubscribe operation completed successfully @return Result::ResultError if the unsubscribe operation failed