[−][src]Struct lnpbp::lnp::session::node_addr::RemoteNodeAddr
Remote node address at the session-level including node encryption/id key
information and full RemoteSocketAddr
with transport protocol & complete
connection point specification.
Node address must be given as in form of
<node_id>@<node_inet_addr>[:<port>]
, where <node_inet_addr> may be
IPv4, IPv6, Onion v2 or v3 address
Fields
node_id: PublicKey
Node public key, used both as an ID and encryption key for per-session ECDH
remote_addr: RemoteSocketAddr
Full remote peer address including port information
Trait Implementations
impl Accept for RemoteNodeAddr
[src]
impl Clone for RemoteNodeAddr
[src]
fn clone(&self) -> RemoteNodeAddr
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Connect for RemoteNodeAddr
[src]
impl Debug for RemoteNodeAddr
[src]
impl Display for RemoteNodeAddr
[src]
impl Eq for RemoteNodeAddr
[src]
impl<'_> From<&'_ RemoteNodeAddr> for Url
[src]
fn from(addr: &RemoteNodeAddr) -> Self
[src]
impl From<RemoteNodeAddr> for NodeAddr
[src]
fn from(addr: RemoteNodeAddr) -> Self
[src]
impl From<RemoteNodeAddr> for Url
[src]
fn from(addr: RemoteNodeAddr) -> Self
[src]
impl From<RemoteNodeAddr> for RemoteSocketAddr
[src]
fn from(addr: RemoteNodeAddr) -> RemoteSocketAddr
[src]
impl From<RemoteNodeAddr> for PartialNodeAddr
[src]
fn from(node_addr: RemoteNodeAddr) -> PartialNodeAddr
[src]
impl FromStr for RemoteNodeAddr
[src]
type Err = AddrError
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self, Self::Err>
[src]
impl Hash for RemoteNodeAddr
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for RemoteNodeAddr
[src]
fn cmp(&self, other: &RemoteNodeAddr) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<RemoteNodeAddr> for RemoteNodeAddr
[src]
fn eq(&self, other: &RemoteNodeAddr) -> bool
[src]
fn ne(&self, other: &RemoteNodeAddr) -> bool
[src]
impl PartialOrd<RemoteNodeAddr> for RemoteNodeAddr
[src]
fn partial_cmp(&self, other: &RemoteNodeAddr) -> Option<Ordering>
[src]
fn lt(&self, other: &RemoteNodeAddr) -> bool
[src]
fn le(&self, other: &RemoteNodeAddr) -> bool
[src]
fn gt(&self, other: &RemoteNodeAddr) -> bool
[src]
fn ge(&self, other: &RemoteNodeAddr) -> bool
[src]
impl StrictDecode for RemoteNodeAddr
[src]
type Error = Error
Implementation-dependent error type
fn strict_decode<D: Read>(d: D) -> Result<Self, Self::Error>
[src]
impl StrictEncode for RemoteNodeAddr
[src]
type Error = Error
Implementation-dependent error type
fn strict_encode<E: Write>(&self, e: E) -> Result<usize, Self::Error>
[src]
impl StructuralEq for RemoteNodeAddr
[src]
impl StructuralPartialEq for RemoteNodeAddr
[src]
impl ToNodeAddr for RemoteNodeAddr
[src]
fn to_node_addr(&self, default_port: u16) -> Option<NodeAddr>
[src]
impl ToRemoteNodeAddr for RemoteNodeAddr
[src]
fn to_remote_node_addr(&self, default_port: u16) -> Option<RemoteNodeAddr>
[src]
impl TryFrom<PartialNodeAddr> for RemoteNodeAddr
[src]
type Error = AddrError
The type returned in the event of a conversion error.
fn try_from(locator: PartialNodeAddr) -> Result<Self, Self::Error>
[src]
impl TryFrom<Url> for RemoteNodeAddr
[src]
type Error = AddrError
The type returned in the event of a conversion error.
fn try_from(url: Url) -> Result<Self, Self::Error>
[src]
impl UrlString for RemoteNodeAddr
[src]
fn url_scheme(&self) -> &'static str
[src]
fn to_url_string(&self) -> String
[src]
Auto Trait Implementations
impl RefUnwindSafe for RemoteNodeAddr
impl Send for RemoteNodeAddr
impl Sync for RemoteNodeAddr
impl Unpin for RemoteNodeAddr
impl UnwindSafe for RemoteNodeAddr
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,