pub struct TopicConfig {
pub topic_name: Option<CheetahString>,
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<CheetahString, CheetahString>,
}
Fields§
§topic_name: Option<CheetahString>
§read_queue_nums: u32
§write_queue_nums: u32
§perm: u32
§topic_filter_type: TopicFilterType
§topic_sys_flag: u32
§order: bool
§attributes: HashMap<CheetahString, CheetahString>
Implementations§
Source§impl TopicConfig
impl TopicConfig
pub fn get_topic_message_type(&self) -> TopicMessageType
pub fn new(topic_name: impl Into<CheetahString>) -> Self
pub fn with_queues( topic_name: impl Into<CheetahString>, read_queue_nums: u32, write_queue_nums: u32, ) -> Self
pub fn with_perm( topic_name: impl Into<CheetahString>, read_queue_nums: u32, write_queue_nums: u32, perm: u32, ) -> Self
pub fn with_sys_flag( topic_name: impl Into<CheetahString>, 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
pub fn get_read_queue_nums(&self) -> u32
Trait Implementations§
Source§impl Clone for TopicConfig
impl Clone for TopicConfig
Source§fn clone(&self) -> TopicConfig
fn clone(&self) -> TopicConfig
Returns a duplicate 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
Source§impl Display for TopicConfig
impl Display for TopicConfig
Source§impl PartialEq for TopicConfig
impl PartialEq for TopicConfig
Source§impl Serialize for TopicConfig
impl Serialize for TopicConfig
impl StructuralPartialEq for TopicConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> Serialize for T
impl<T> Serialize for T
fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<(), Error>
fn do_erased_serialize( &self, serializer: &mut dyn Serializer, ) -> Result<(), ErrorImpl>
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string
, but without panic on OOM.