pub struct NodeAddr {
pub services: u64,
pub ip: Ipv6Addr,
pub port: u16,
}
Expand description
Network address for a node on the network
Fields§
§services: u64
Services flags for the node
ip: Ipv6Addr
IPV6 address for the node. IPV4 addresses may be used as IPV4-mapped IPV6 addresses.
port: u16
Port for Bitcoin P2P communication
Implementations§
Trait Implementations§
Source§impl Serializable<NodeAddr> for NodeAddr
impl Serializable<NodeAddr> for NodeAddr
impl Eq for NodeAddr
impl StructuralPartialEq for NodeAddr
Auto Trait Implementations§
impl Freeze for NodeAddr
impl RefUnwindSafe for NodeAddr
impl Send for NodeAddr
impl Sync for NodeAddr
impl Unpin for NodeAddr
impl UnwindSafe for NodeAddr
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