pub struct MessageQueueForC {
pub topic: CheetahString,
pub broker_name: CheetahString,
pub queue_id: i32,
pub offset: i64,
}Expand description
MessageQueue structure for C++ client compatibility. Includes offset field that the standard MessageQueue doesn’t have.
Fields§
§topic: CheetahString§broker_name: CheetahString§queue_id: i32§offset: i64Implementations§
Source§impl MessageQueueForC
impl MessageQueueForC
pub fn new( topic: impl Into<CheetahString>, broker_name: impl Into<CheetahString>, queue_id: i32, offset: i64, ) -> Self
Sourcepub fn from_message_queue(mq: &MessageQueue, offset: i64) -> Self
pub fn from_message_queue(mq: &MessageQueue, offset: i64) -> Self
Create from MessageQueue with offset
Trait Implementations§
Source§impl Clone for MessageQueueForC
impl Clone for MessageQueueForC
Source§impl Debug for MessageQueueForC
impl Debug for MessageQueueForC
Source§impl Default for MessageQueueForC
impl Default for MessageQueueForC
Source§impl<'de> Deserialize<'de> for MessageQueueForC
impl<'de> Deserialize<'de> for MessageQueueForC
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 MessageQueueForC
impl Display for MessageQueueForC
impl Eq for MessageQueueForC
Source§impl Hash for MessageQueueForC
impl Hash for MessageQueueForC
Source§impl Ord for MessageQueueForC
impl Ord for MessageQueueForC
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 MessageQueueForC
impl PartialEq for MessageQueueForC
Source§impl PartialOrd for MessageQueueForC
impl PartialOrd for MessageQueueForC
Auto Trait Implementations§
impl Freeze for MessageQueueForC
impl RefUnwindSafe for MessageQueueForC
impl Send for MessageQueueForC
impl Sync for MessageQueueForC
impl Unpin for MessageQueueForC
impl UnsafeUnpin for MessageQueueForC
impl UnwindSafe for MessageQueueForC
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