Struct ldk_node::NetAddress
source · pub struct NetAddress(pub LdkNetAddress);
Expand description
The network address of a Lightning node.
Currently only IPv4, IPv6, and DNS hostnames are supported.
Tuple Fields§
§0: LdkNetAddress
Trait Implementations§
source§impl Clone for NetAddress
impl Clone for NetAddress
source§fn clone(&self) -> NetAddress
fn clone(&self) -> NetAddress
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 NetAddress
impl Debug for NetAddress
source§impl Display for NetAddress
impl Display for NetAddress
source§impl From<SocketAddr> for NetAddress
impl From<SocketAddr> for NetAddress
source§fn from(value: SocketAddr) -> Self
fn from(value: SocketAddr) -> Self
Converts to this type from the input type.
source§impl From<SocketAddrV4> for NetAddress
impl From<SocketAddrV4> for NetAddress
source§fn from(value: SocketAddrV4) -> Self
fn from(value: SocketAddrV4) -> Self
Converts to this type from the input type.
source§impl From<SocketAddrV6> for NetAddress
impl From<SocketAddrV6> for NetAddress
source§fn from(value: SocketAddrV6) -> Self
fn from(value: SocketAddrV6) -> Self
Converts to this type from the input type.
source§impl FromStr for NetAddress
impl FromStr for NetAddress
source§impl PartialEq<NetAddress> for NetAddress
impl PartialEq<NetAddress> for NetAddress
source§fn eq(&self, other: &NetAddress) -> bool
fn eq(&self, other: &NetAddress) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Readable for NetAddress
impl Readable for NetAddress
source§impl ToSocketAddrs for NetAddress
impl ToSocketAddrs for NetAddress
§type Iter = IntoIter<SocketAddr>
type Iter = IntoIter<SocketAddr>
Returned iterator over socket addresses which this type may correspond
to.
source§fn to_socket_addrs(&self) -> Result<Self::Iter>
fn to_socket_addrs(&self) -> Result<Self::Iter>
Converts this object to an iterator of resolved
SocketAddr
s. Read moresource§impl Writeable for NetAddress
impl Writeable for NetAddress
impl Eq for NetAddress
impl StructuralEq for NetAddress
impl StructuralPartialEq for NetAddress
Auto Trait Implementations§
impl RefUnwindSafe for NetAddress
impl Send for NetAddress
impl Sync for NetAddress
impl Unpin for NetAddress
impl UnwindSafe for NetAddress
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.