pub async fn ensure_topic_with_policy(
bootstrap: &str,
topic: &str,
partitions: i32,
security: Option<ClientSecurity>,
client_resource_policy: ClientResourcePolicy,
) -> Result<(), String>Expand description
Ensure a 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.