pub enum NodeAnnouncementInfo {
Relayed(NodeAnnouncement),
Local(NodeAnnouncementDetails),
}Expand description
Information received in the latest node_announcement from this node.
Variants§
Relayed(NodeAnnouncement)
An initial announcement of the node Everything else is useful only for sending out for initial routing sync. Not stored if contains excess data to prevent DoS.
Local(NodeAnnouncementDetails)
Non-relayable information received in the latest node_announcement from this node.
Implementations§
Source§impl NodeAnnouncementInfo
impl NodeAnnouncementInfo
Sourcepub fn features(&self) -> &NodeFeatures
pub fn features(&self) -> &NodeFeatures
Protocol features the node announced support for
Sourcepub fn last_update(&self) -> u32
pub fn last_update(&self) -> u32
When the last known update to the node state was issued.
Value may or may not be a timestamp, depending on the policy of the origin node.
Sourcepub fn alias(&self) -> &NodeAlias
pub fn alias(&self) -> &NodeAlias
Moniker assigned to the node.
May be invalid or malicious (eg control chars), should not be exposed to the user.
Sourcepub fn addresses(&self) -> &[SocketAddress]
pub fn addresses(&self) -> &[SocketAddress]
Internet-level addresses via which one can connect to the node
Sourcepub fn announcement_message(&self) -> Option<&NodeAnnouncement>
pub fn announcement_message(&self) -> Option<&NodeAnnouncement>
An initial announcement of the node
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
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more