pub enum AnnouncementMessage {
Inventory(InventoryAnnouncement),
Node(NodeAnnouncement),
Refs(RefsAnnouncement),
}
Expand description
Announcement messages are messages that are relayed between peers.
Variants§
Inventory(InventoryAnnouncement)
Inventory announcement.
Node(NodeAnnouncement)
Node announcement.
Refs(RefsAnnouncement)
Refs announcement.
Implementations§
Trait Implementations§
Source§impl Clone for AnnouncementMessage
impl Clone for AnnouncementMessage
Source§fn clone(&self) -> AnnouncementMessage
fn clone(&self) -> AnnouncementMessage
Returns a duplicate 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 AnnouncementMessage
impl Debug for AnnouncementMessage
Source§impl From<InventoryAnnouncement> for AnnouncementMessage
impl From<InventoryAnnouncement> for AnnouncementMessage
Source§fn from(ann: InventoryAnnouncement) -> Self
fn from(ann: InventoryAnnouncement) -> Self
Converts to this type from the input type.
Source§impl From<NodeAnnouncement> for AnnouncementMessage
impl From<NodeAnnouncement> for AnnouncementMessage
Source§fn from(ann: NodeAnnouncement) -> Self
fn from(ann: NodeAnnouncement) -> Self
Converts to this type from the input type.
Source§impl From<RefsAnnouncement> for AnnouncementMessage
impl From<RefsAnnouncement> for AnnouncementMessage
Source§fn from(ann: RefsAnnouncement) -> Self
fn from(ann: RefsAnnouncement) -> Self
Converts to this type from the input type.
Source§impl PartialEq for AnnouncementMessage
impl PartialEq for AnnouncementMessage
impl Eq for AnnouncementMessage
impl StructuralPartialEq for AnnouncementMessage
Auto Trait Implementations§
impl Freeze for AnnouncementMessage
impl RefUnwindSafe for AnnouncementMessage
impl Send for AnnouncementMessage
impl Sync for AnnouncementMessage
impl Unpin for AnnouncementMessage
impl UnwindSafe for AnnouncementMessage
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
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.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more