pub struct DispatchOutcome { /* private fields */ }Expand description
Outcome of a successful dispatch: the consumer the message was delivered to and the chain of consumers that crashed and were re-routed past, in order.
Implementations§
Source§impl DispatchOutcome
impl DispatchOutcome
Sourcepub const fn delivered_to(&self) -> &ConsumerId
pub const fn delivered_to(&self) -> &ConsumerId
Consumer the message was ultimately delivered to.
Sourcepub fn rerouted_from(&self) -> &[ConsumerId]
pub fn rerouted_from(&self) -> &[ConsumerId]
Consumers that crashed mid-dispatch and were re-routed past, in order.
Sourcepub fn reroute_timings(&self) -> &[RerouteTiming]
pub fn reroute_timings(&self) -> &[RerouteTiming]
Real crash-to-reroute timings, one per consumer in Self::rerouted_from
and in the same order. Each spans the consumer’s EXIT instant (captured
in the link handler) through to re-route initiation, so callers can
verify sub-millisecond, event-driven detection (R3 / CN7).
Sourcepub fn delivered_first_try(&self) -> bool
pub fn delivered_first_try(&self) -> bool
True when the message was delivered without any consumer crash.
Trait Implementations§
Source§impl Clone for DispatchOutcome
impl Clone for DispatchOutcome
Source§fn clone(&self) -> DispatchOutcome
fn clone(&self) -> DispatchOutcome
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DispatchOutcome
impl Debug for DispatchOutcome
impl Eq for DispatchOutcome
Source§impl PartialEq for DispatchOutcome
impl PartialEq for DispatchOutcome
Source§fn eq(&self, other: &DispatchOutcome) -> bool
fn eq(&self, other: &DispatchOutcome) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DispatchOutcome
Auto Trait Implementations§
impl Freeze for DispatchOutcome
impl RefUnwindSafe for DispatchOutcome
impl Send for DispatchOutcome
impl Sync for DispatchOutcome
impl Unpin for DispatchOutcome
impl UnsafeUnpin for DispatchOutcome
impl UnwindSafe for DispatchOutcome
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> 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
Compare self to
key and return true if they are equal.