pub struct DeliveryAck { /* private fields */ }Expand description
Genuine delivery ack for a publish, distinct from the backpressure signal.
PressureResponse reports the bus’s admission decision (accepted / buffered
/ shed); a DeliveryAck reports whether the message was actually received by a
subscriber. A caller that must only treat a send as done when a worker genuinely
accepted it (for example the aion outbox) inspects DeliveryAck::is_accepted:
true means at least one subscriber received the message, false means the
publish succeeded but reached no subscriber (an empty channel, or a duplicate
suppressed by dedup-on-delivery).
Implementations§
Source§impl DeliveryAck
impl DeliveryAck
Sourcepub const fn new(pressure: PressureResponse, accepted: bool) -> Self
pub const fn new(pressure: PressureResponse, accepted: bool) -> Self
Builds a delivery ack from the backpressure response and acceptance flag.
Sourcepub const fn is_accepted(&self) -> bool
pub const fn is_accepted(&self) -> bool
Whether the message was genuinely accepted by at least one subscriber.
Sourcepub const fn pressure(&self) -> &PressureResponse
pub const fn pressure(&self) -> &PressureResponse
The backpressure response the bus returned for this publish.
Trait Implementations§
Source§impl Clone for DeliveryAck
impl Clone for DeliveryAck
Source§fn clone(&self) -> DeliveryAck
fn clone(&self) -> DeliveryAck
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DeliveryAck
impl Debug for DeliveryAck
impl Eq for DeliveryAck
Source§impl PartialEq for DeliveryAck
impl PartialEq for DeliveryAck
Source§fn eq(&self, other: &DeliveryAck) -> bool
fn eq(&self, other: &DeliveryAck) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DeliveryAck
Auto Trait Implementations§
impl Freeze for DeliveryAck
impl RefUnwindSafe for DeliveryAck
impl Send for DeliveryAck
impl Sync for DeliveryAck
impl Unpin for DeliveryAck
impl UnsafeUnpin for DeliveryAck
impl UnwindSafe for DeliveryAck
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.