Struct lightning::routing::gossip::NodeAnnouncementInfo
source · pub struct NodeAnnouncementInfo {
pub features: NodeFeatures,
pub last_update: u32,
pub rgb: [u8; 3],
pub alias: NodeAlias,
pub addresses: Vec<NetAddress>,
pub announcement_message: Option<NodeAnnouncement>,
}
Expand description
Information received in the latest node_announcement from this node.
Fields§
§features: NodeFeatures
Protocol features the node announced support for
last_update: u32
When the last known update to the node state was issued. Value is opaque, as set in the announcement.
rgb: [u8; 3]
Color assigned to the node
alias: NodeAlias
Moniker assigned to the node. May be invalid or malicious (eg control chars), should not be exposed to the user.
addresses: Vec<NetAddress>
Internet-level addresses via which one can connect to the node
announcement_message: Option<NodeAnnouncement>
An initial announcement of the node Mostly redundant with the data we store in fields explicitly. Everything else is useful only for sending out for initial routing sync. Not stored if contains excess data to prevent DoS.
Trait Implementations§
source§impl Clone for NodeAnnouncementInfo
impl Clone for NodeAnnouncementInfo
source§fn clone(&self) -> NodeAnnouncementInfo
fn clone(&self) -> NodeAnnouncementInfo
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 NodeAnnouncementInfo
impl Debug for NodeAnnouncementInfo
source§impl PartialEq<NodeAnnouncementInfo> for NodeAnnouncementInfo
impl PartialEq<NodeAnnouncementInfo> for NodeAnnouncementInfo
source§fn eq(&self, other: &NodeAnnouncementInfo) -> bool
fn eq(&self, other: &NodeAnnouncementInfo) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.