pub struct BroadcastId(pub u64);Expand description
Names one broadcast, so the caller can later retire it.
Distinct from the SendIds beneath: one broadcast becomes N stubborn transmissions, and
the caller has no way to name those — they are minted here. The layer above allocates this,
and the same rule applies as to a SendId: it must not name a broadcast that is still live.
Tuple Fields§
§0: u64Trait Implementations§
Source§impl Clone for BroadcastId
impl Clone for BroadcastId
Source§fn clone(&self) -> BroadcastId
fn clone(&self) -> BroadcastId
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 BroadcastId
Source§impl Debug for BroadcastId
impl Debug for BroadcastId
impl Eq for BroadcastId
Source§impl Hash for BroadcastId
impl Hash for BroadcastId
Source§impl Ord for BroadcastId
impl Ord for BroadcastId
Source§fn cmp(&self, other: &BroadcastId) -> Ordering
fn cmp(&self, other: &BroadcastId) -> Ordering
1.21.0 (const: unstable) · 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 BroadcastId
impl PartialEq for BroadcastId
Source§fn eq(&self, other: &BroadcastId) -> bool
fn eq(&self, other: &BroadcastId) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for BroadcastId
impl PartialOrd for BroadcastId
impl StructuralPartialEq for BroadcastId
Auto Trait Implementations§
impl Freeze for BroadcastId
impl RefUnwindSafe for BroadcastId
impl Send for BroadcastId
impl Sync for BroadcastId
impl Unpin for BroadcastId
impl UnsafeUnpin for BroadcastId
impl UnwindSafe for BroadcastId
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