pub struct NodeAnnouncement {
pub signature: Signature,
pub contents: UnsignedNodeAnnouncement,
}
Expand description
A node_announcement message to be sent or received from a peer
Fields
signature: Signature
The signature by the node key
contents: UnsignedNodeAnnouncement
The actual content of the announcement
Trait Implementations
sourceimpl Clone for NodeAnnouncement
impl Clone for NodeAnnouncement
sourcefn clone(&self) -> NodeAnnouncement
fn clone(&self) -> NodeAnnouncement
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for NodeAnnouncement
impl Debug for NodeAnnouncement
sourceimpl PartialEq<NodeAnnouncement> for NodeAnnouncement
impl PartialEq<NodeAnnouncement> for NodeAnnouncement
sourcefn eq(&self, other: &NodeAnnouncement) -> bool
fn eq(&self, other: &NodeAnnouncement) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &NodeAnnouncement) -> bool
fn ne(&self, other: &NodeAnnouncement) -> bool
This method tests for !=
.
sourceimpl Readable for NodeAnnouncement
impl Readable for NodeAnnouncement
sourceimpl Writeable for NodeAnnouncement
impl Writeable for NodeAnnouncement
sourcefn serialized_length(&self) -> usize
fn serialized_length(&self) -> usize
Gets the length of this object after it has been serialized. This can be overridden to optimize cases where we prepend an object with its length. Read more
impl StructuralPartialEq for NodeAnnouncement
Auto Trait Implementations
impl RefUnwindSafe for NodeAnnouncement
impl Send for NodeAnnouncement
impl Sync for NodeAnnouncement
impl Unpin for NodeAnnouncement
impl UnwindSafe for NodeAnnouncement
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more