pub async fn partition0_leader_from_metadata(
bootstrap: &str,
topic: &str,
security: Option<ClientSecurity>,
dispatch_queue_capacity: ConnectionDispatchQueueCapacity,
frame_max: ClientFrameMax,
) -> Result<i32>Expand description
Queries the topic metadata and returns partition 0’s current leader broker id.
§Errors
Returns an error when input data is invalid, required I/O fails, or the destination rejects the generated report or audit event.