pub struct SeaMessage { /* private fields */ }Expand description
A message delivered by one of this crate’s subscribers.
This is the whole delivery on standard input; a stream file wraps it in a
FileMessage, which adds the subscription’s reposition handle.
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§fn ack(self) -> impl Future<Output = Result<(), AckError>>
fn ack(self) -> impl Future<Output = Result<(), AckError>>
Acknowledges successful processing. Consumes the message handle. Read more
Source§fn nack(self, _requeue: bool) -> impl Future<Output = Result<(), AckError>>
fn nack(self, _requeue: bool) -> impl Future<Output = 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 redelivery_count(&self) -> Option<u64>
fn redelivery_count(&self) -> Option<u64>
How many times the broker has delivered this message, counting this delivery.
None
where the transport counts nothing. Read moreSource§fn decode_error(&self) -> Option<&CodecError>
fn decode_error(&self) -> Option<&CodecError>
The error the broker met while reading this delivery, or
None when it read the delivery
whole. 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
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more