pub struct SeaMessage { /* private fields */ }Expand description
A message delivered by one of this crate’s subscribers.
The transport keeps no consumer positions (its resumable mode is unimplemented upstream),
so acknowledgement reports AckError::Unsupported rather than pretending; resume
explicitly via the descriptor’s start position or a captured FilePosition.
Implementations§
Trait Implementations§
Source§impl Debug for SeaMessage
impl Debug for SeaMessage
Source§impl IncomingMessage for SeaMessage
impl IncomingMessage for SeaMessage
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 moreSource§impl Positioned for SeaMessage
impl Positioned for SeaMessage
Source§type Position = FilePosition
type Position = FilePosition
The position type, matching the subscription’s
Seeker::Position.Source§fn position(&self) -> FilePosition
fn position(&self) -> FilePosition
Returns the position of this delivery; seeking to it redelivers this message.
Auto Trait Implementations§
impl !Freeze for SeaMessage
impl RefUnwindSafe for SeaMessage
impl Send for SeaMessage
impl Sync for SeaMessage
impl Unpin for SeaMessage
impl UnsafeUnpin for SeaMessage
impl UnwindSafe for SeaMessage
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