pub struct Kafka { /* private fields */ }Implementations§
source§impl Kafka
impl Kafka
sourcepub fn add_config(&mut self, connection: JsonValue) -> &mut Self
pub fn add_config(&mut self, connection: JsonValue) -> &mut Self
增加配置
sourcepub fn switch_config(&mut self, default: &str) -> &mut Self
pub fn switch_config(&mut self, default: &str) -> &mut Self
切换配置
sourcepub fn get_topics(&mut self) -> Vec<String>
pub fn get_topics(&mut self) -> Vec<String>
获取全部主题
sourcepub fn create_topic(&mut self, topic: &str) -> bool
pub fn create_topic(&mut self, topic: &str) -> bool
创建主题