pub struct ZmqMessage { /* private fields */ }Expand description
A message delivered by one of the transport’s subscribers.
Delivery is at most once and there is no durability, so acknowledgement is reported as
AckError::Unsupported rather than emulated.
Implementations§
Trait Implementations§
Source§impl Debug for ZmqMessage
impl Debug for ZmqMessage
Source§impl IncomingMessage for ZmqMessage
impl IncomingMessage for ZmqMessage
Source§async fn ack(self) -> Result<(), AckError>
async fn ack(self) -> Result<(), AckError>
Acknowledges successful processing. Consumes the message handle. Read more
Source§async fn nack(self, _requeue: bool) -> Result<(), AckError>
async fn nack(self, _requeue: bool) -> Result<(), AckError>
Negatively acknowledges the message. When
requeue is true the broker should
redeliver according to its own retry policy; when false it should drop or dead-letter
the message. Read moreSource§fn partition_key(&self) -> Option<&[u8]>
fn partition_key(&self) -> Option<&[u8]>
Returns the routing key the broker partitioned this message by, or
None when the
message carries no key. Read moreSource§fn supports_nack_after(&self) -> bool
fn supports_nack_after(&self) -> bool
Reports whether this transport can honor
nack_after natively. Read moreAuto Trait Implementations§
impl !Freeze for ZmqMessage
impl RefUnwindSafe for ZmqMessage
impl Send for ZmqMessage
impl Sync for ZmqMessage
impl Unpin for ZmqMessage
impl UnsafeUnpin for ZmqMessage
impl UnwindSafe for ZmqMessage
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