pub enum DeliveryScope {
Swarm(Round),
Neighbors,
}
Expand description
The scope to deliver the message to.
Variants§
Swarm(Round)
This message was received from the swarm, with a distance (in hops) travelled from the original broadcaster.
Neighbors
This message was received from a direct neighbor that broadcasted the message to neighbors only.
Implementations§
Trait Implementations§
Source§impl Clone for DeliveryScope
impl Clone for DeliveryScope
Source§fn clone(&self) -> DeliveryScope
fn clone(&self) -> DeliveryScope
Returns a copy of the value. Read more
1.0.0 · 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 DeliveryScope
impl Debug for DeliveryScope
Source§impl<'de> Deserialize<'de> for DeliveryScope
impl<'de> Deserialize<'de> for DeliveryScope
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Ord for DeliveryScope
impl Ord for DeliveryScope
Source§fn cmp(&self, other: &DeliveryScope) -> Ordering
fn cmp(&self, other: &DeliveryScope) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for DeliveryScope
impl PartialEq for DeliveryScope
Source§impl PartialOrd for DeliveryScope
impl PartialOrd for DeliveryScope
Source§impl Serialize for DeliveryScope
impl Serialize for DeliveryScope
impl Copy for DeliveryScope
impl Eq for DeliveryScope
impl StructuralPartialEq for DeliveryScope
Auto Trait Implementations§
impl Freeze for DeliveryScope
impl RefUnwindSafe for DeliveryScope
impl Send for DeliveryScope
impl Sync for DeliveryScope
impl Unpin for DeliveryScope
impl UnwindSafe for DeliveryScope
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.