pub struct ChannelDelivery { /* private fields */ }Expand description
Genuine delivery ack returned by ChannelHandle::publish_with_delivery.
Distinct from backpressure: it reports whether a published message was actually received by a subscriber, not whether it was admitted to the bus.
Implementations§
Source§impl ChannelDelivery
impl ChannelDelivery
Sourcepub const fn delivered_count(&self) -> usize
pub const fn delivered_count(&self) -> usize
Number of local subscribers the message was genuinely delivered to.
Sourcepub const fn is_delivered(&self) -> bool
pub const fn is_delivered(&self) -> bool
Whether the message was accepted by at least one subscriber.
Trait Implementations§
Source§impl Clone for ChannelDelivery
impl Clone for ChannelDelivery
Source§fn clone(&self) -> ChannelDelivery
fn clone(&self) -> ChannelDelivery
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 moreimpl Copy for ChannelDelivery
Source§impl Debug for ChannelDelivery
impl Debug for ChannelDelivery
impl Eq for ChannelDelivery
Source§impl PartialEq for ChannelDelivery
impl PartialEq for ChannelDelivery
Source§fn eq(&self, other: &ChannelDelivery) -> bool
fn eq(&self, other: &ChannelDelivery) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ChannelDelivery
Auto Trait Implementations§
impl Freeze for ChannelDelivery
impl RefUnwindSafe for ChannelDelivery
impl Send for ChannelDelivery
impl Sync for ChannelDelivery
impl Unpin for ChannelDelivery
impl UnsafeUnpin for ChannelDelivery
impl UnwindSafe for ChannelDelivery
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.