pub enum LxSocketAddress {
TcpIpv4 {
ip: Ipv4Addr,
port: u16,
},
TcpIpv6 {
ip: Ipv6Addr,
port: u16,
},
TcpDns {
hostname: Hostname,
port: u16,
},
}Expand description
LxSocketAddress represents an internet address of a remote lightning
network peer.
It’s morally equivalent to lightning::ln::msgs::SocketAddress, but
intentionally ignores all TOR-related addresses since we don’t currently
support TOR. It also has a well-defined human-readable serialization format,
unlike the LDK type.
Variants§
Trait Implementations§
Source§impl Clone for LxSocketAddress
impl Clone for LxSocketAddress
Source§fn clone(&self) -> LxSocketAddress
fn clone(&self) -> LxSocketAddress
Returns a duplicate 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 LxSocketAddress
impl Debug for LxSocketAddress
Source§impl<'de> Deserialize<'de> for LxSocketAddress
impl<'de> Deserialize<'de> for LxSocketAddress
Source§fn deserialize<__D>(deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for LxSocketAddress
impl Display for LxSocketAddress
Source§impl From<LxSocketAddress> for SocketAddress
impl From<LxSocketAddress> for SocketAddress
Source§fn from(value: LxSocketAddress) -> Self
fn from(value: LxSocketAddress) -> Self
Converts to this type from the input type.
Source§impl From<SocketAddrV4> for LxSocketAddress
impl From<SocketAddrV4> for LxSocketAddress
Source§fn from(value: SocketAddrV4) -> Self
fn from(value: SocketAddrV4) -> Self
Converts to this type from the input type.
Source§impl FromStr for LxSocketAddress
impl FromStr for LxSocketAddress
Source§impl Hash for LxSocketAddress
impl Hash for LxSocketAddress
Source§impl PartialEq for LxSocketAddress
impl PartialEq for LxSocketAddress
Source§impl Serialize for LxSocketAddresswhere
Self: Display,
impl Serialize for LxSocketAddresswhere
Self: Display,
Source§impl ToSocketAddrs for LxSocketAddress
Available on non-SGX only.
impl ToSocketAddrs for LxSocketAddress
Available on non-SGX only.
Source§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
SocketAddrs. Read moreSource§impl TryFrom<SocketAddr> for LxSocketAddress
impl TryFrom<SocketAddr> for LxSocketAddress
Source§impl TryFrom<SocketAddrV6> for LxSocketAddress
impl TryFrom<SocketAddrV6> for LxSocketAddress
Source§impl TryFrom<SocketAddress> for LxSocketAddress
impl TryFrom<SocketAddress> for LxSocketAddress
impl Eq for LxSocketAddress
impl StructuralPartialEq for LxSocketAddress
Auto Trait Implementations§
impl Freeze for LxSocketAddress
impl RefUnwindSafe for LxSocketAddress
impl Send for LxSocketAddress
impl Sync for LxSocketAddress
impl Unpin for LxSocketAddress
impl UnsafeUnpin for LxSocketAddress
impl UnwindSafe for LxSocketAddress
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