pub struct PublishOutcome {
pub message_id: u64,
pub delivered: bool,
}Expand description
Outcome of a server publish.
Carries the assigned message id plus a genuine delivery ack (delivered = the
message was accepted by at least one live subscriber on this publish, after any
dedup-on-delivery suppression).
Fields§
§message_id: u64Monotonic message id assigned to the accepted publish.
delivered: boolWhether the message was genuinely delivered to a subscriber. false means
the publish was accepted but reached no subscriber (empty channel) or was
a duplicate suppressed by dedup-on-delivery.
Trait Implementations§
Source§impl Clone for PublishOutcome
impl Clone for PublishOutcome
Source§fn clone(&self) -> PublishOutcome
fn clone(&self) -> PublishOutcome
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 PublishOutcome
Source§impl Debug for PublishOutcome
impl Debug for PublishOutcome
impl Eq for PublishOutcome
Source§impl PartialEq for PublishOutcome
impl PartialEq for PublishOutcome
Source§fn eq(&self, other: &PublishOutcome) -> bool
fn eq(&self, other: &PublishOutcome) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PublishOutcome
Auto Trait Implementations§
impl Freeze for PublishOutcome
impl RefUnwindSafe for PublishOutcome
impl Send for PublishOutcome
impl Sync for PublishOutcome
impl Unpin for PublishOutcome
impl UnsafeUnpin for PublishOutcome
impl UnwindSafe for PublishOutcome
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.