pub struct DueAcknowledgementEntry { /* private fields */ }Expand description
An acknowledgement returned by the runtime’s durable journal read.
Callers can inspect the binding and retry bookkeeping, but cannot manufacture an entry from uncommitted delivery data. This type stores no signed bytes.
ⓘ
use khive_db::stores::note::recipient::AckJournalEntry;
use khive_runtime::comm_recipient::DueAcknowledgementEntry;
fn forge(journal: AckJournalEntry) {
let _ = DueAcknowledgementEntry { journal };
}Implementations§
Source§impl DueAcknowledgementEntry
impl DueAcknowledgementEntry
Sourcepub fn binding(&self) -> &Value
pub fn binding(&self) -> &Value
The binding recorded when the delivery was committed or replayed.
Sourcepub fn disposition(&self) -> RecipientDisposition
pub fn disposition(&self) -> RecipientDisposition
The disposition first committed for this logical message.
Sourcepub fn delivery_attempt_id(&self) -> Uuid
pub fn delivery_attempt_id(&self) -> Uuid
The exact delivery attempt this acknowledgement finishes.
Sourcepub fn attempt_count(&self) -> u64
pub fn attempt_count(&self) -> u64
The number of failed acknowledgement tries recorded durably.
Sourcepub fn not_before(&self) -> Option<i64>
pub fn not_before(&self) -> Option<i64>
The earliest retry time, in microseconds since the Unix epoch.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DueAcknowledgementEntry
impl RefUnwindSafe for DueAcknowledgementEntry
impl Send for DueAcknowledgementEntry
impl Sync for DueAcknowledgementEntry
impl Unpin for DueAcknowledgementEntry
impl UnsafeUnpin for DueAcknowledgementEntry
impl UnwindSafe for DueAcknowledgementEntry
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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