Skip to main content

ensure_compacted_topic_with_policy

Function ensure_compacted_topic_with_policy 

Source
pub async fn ensure_compacted_topic_with_policy(
    bootstrap: &str,
    topic: &str,
    security: Option<ClientSecurity>,
    client_resource_policy: ClientResourcePolicy,
) -> Result<(), String>
Expand description

Ensure a compacted topic using the deployment’s client resource policy.

§Errors

Returns an error when configuration is invalid, protocol encoding fails, the broker rejects the request, or transport I/O fails.