pub struct MessageQueue { /* private fields */ }Expand description
Identifies a queue within a broker for a topic.
Implementations§
Source§impl MessageQueue
impl MessageQueue
Sourcepub fn from_other(other: &Self) -> Self
pub fn from_other(other: &Self) -> Self
Copies an existing queue identifier.
Sourcepub fn from_parts(
topic: impl Into<CheetahString>,
broker_name: impl Into<CheetahString>,
queue_id: i32,
) -> Self
pub fn from_parts( topic: impl Into<CheetahString>, broker_name: impl Into<CheetahString>, queue_id: i32, ) -> Self
Creates a queue identifier from its wire-level parts.
pub fn topic_str(&self) -> &str
pub fn topic(&self) -> &CheetahString
pub fn set_topic(&mut self, topic: CheetahString)
pub fn broker_name(&self) -> &CheetahString
pub fn set_broker_name(&mut self, broker_name: CheetahString)
pub fn queue_id(&self) -> i32
pub fn set_queue_id(&mut self, queue_id: i32)
Trait Implementations§
Source§impl Clone for MessageQueue
impl Clone for MessageQueue
Source§impl Debug for MessageQueue
impl Debug for MessageQueue
Source§impl Default for MessageQueue
impl Default for MessageQueue
Source§impl<'de> Deserialize<'de> for MessageQueue
impl<'de> Deserialize<'de> for MessageQueue
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 MessageQueue
impl Display for MessageQueue
impl Eq for MessageQueue
Source§impl Hash for MessageQueue
impl Hash for MessageQueue
Source§impl Ord for MessageQueue
impl Ord for MessageQueue
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for MessageQueue
impl PartialEq for MessageQueue
Auto Trait Implementations§
impl Freeze for MessageQueue
impl RefUnwindSafe for MessageQueue
impl Send for MessageQueue
impl Sync for MessageQueue
impl Unpin for MessageQueue
impl UnsafeUnpin for MessageQueue
impl UnwindSafe for MessageQueue
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