pub struct PendingAck {
pub message_id: MessageId,
pub sent_at: DateTime<Utc>,
pub timeout_ms: u64,
pub status: AckStatus,
pub retry_count: u32,
pub priority: MessagePriority,
pub extended_ms: u64,
}Expand description
Information about a pending ACK.
Fields§
§message_id: MessageIdMessage ID waiting for ACK.
sent_at: DateTime<Utc>When the message was sent.
timeout_ms: u64Timeout for this ACK (in milliseconds).
status: AckStatusCurrent status.
retry_count: u32Number of times the message has been retried.
priority: MessagePriorityPriority of the message (for eviction decisions).
extended_ms: u64How far the deadline has been pushed past sent_at + timeout_ms while
the frame was still waiting in a local transport queue. Kept apart from
sent_at, which the sender reads to measure the round trip, and reset
on every new attempt.
Implementations§
Source§impl PendingAck
impl PendingAck
Sourcepub fn is_timed_out(&self) -> bool
pub fn is_timed_out(&self) -> bool
Checks if this ACK has timed out.
Trait Implementations§
Source§impl Clone for PendingAck
impl Clone for PendingAck
Auto Trait Implementations§
impl Freeze for PendingAck
impl RefUnwindSafe for PendingAck
impl Send for PendingAck
impl Sync for PendingAck
impl Unpin for PendingAck
impl UnsafeUnpin for PendingAck
impl UnwindSafe for PendingAck
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