Struct rocketmq_common::common::config::TopicConfig
source · pub struct TopicConfig {
pub topic_name: Option<String>,
pub read_queue_nums: u32,
pub write_queue_nums: u32,
pub perm: u32,
pub topic_filter_type: TopicFilterType,
pub topic_sys_flag: u32,
pub order: bool,
pub attributes: HashMap<String, String>,
}Fields§
§topic_name: Option<String>§read_queue_nums: u32§write_queue_nums: u32§perm: u32§topic_filter_type: TopicFilterType§topic_sys_flag: u32§order: bool§attributes: HashMap<String, String>Implementations§
source§impl TopicConfig
impl TopicConfig
pub fn new(topic_name: impl Into<String>) -> Self
pub fn with_queues( topic_name: impl Into<String>, read_queue_nums: u32, write_queue_nums: u32 ) -> Self
pub fn with_perm( topic_name: impl Into<String>, read_queue_nums: u32, write_queue_nums: u32, perm: u32 ) -> Self
pub fn with_sys_flag( topic_name: impl Into<String>, read_queue_nums: u32, write_queue_nums: u32, perm: u32, topic_sys_flag: u32 ) -> Self
pub fn encode(&self) -> String
pub fn decode(&mut self, input: &str) -> bool
Trait Implementations§
source§impl Clone for TopicConfig
impl Clone for TopicConfig
source§fn clone(&self) -> TopicConfig
fn clone(&self) -> TopicConfig
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for TopicConfig
impl Debug for TopicConfig
source§impl Default for TopicConfig
impl Default for TopicConfig
source§impl<'de> Deserialize<'de> for TopicConfig
impl<'de> Deserialize<'de> for TopicConfig
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TopicConfig
impl RefUnwindSafe for TopicConfig
impl Send for TopicConfig
impl Sync for TopicConfig
impl Unpin for TopicConfig
impl UnwindSafe for TopicConfig
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more