[−][src]Struct internet2::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]
pub fn clone(&self) -> RemoteNodeAddr
[src]
pub 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 NodeAddr
[src]
pub fn from(addr: RemoteNodeAddr) -> Self
[src]
impl From<RemoteNodeAddr> for RemoteSocketAddr
[src]
pub fn from(addr: RemoteNodeAddr) -> RemoteSocketAddr
[src]
impl From<RemoteNodeAddr> for PartialNodeAddr
[src]
pub fn from(node_addr: RemoteNodeAddr) -> PartialNodeAddr
[src]
impl FromStr for RemoteNodeAddr
[src]
type Err = AddrError
The associated error which can be returned from parsing.
pub fn from_str(s: &str) -> Result<Self, Self::Err>
[src]
impl Hash for RemoteNodeAddr
[src]
pub fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for RemoteNodeAddr
[src]
pub fn cmp(&self, other: &RemoteNodeAddr) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<RemoteNodeAddr> for RemoteNodeAddr
[src]
pub fn eq(&self, other: &RemoteNodeAddr) -> bool
[src]
pub fn ne(&self, other: &RemoteNodeAddr) -> bool
[src]
impl PartialOrd<RemoteNodeAddr> for RemoteNodeAddr
[src]
pub fn partial_cmp(&self, other: &RemoteNodeAddr) -> Option<Ordering>
[src]
pub fn lt(&self, other: &RemoteNodeAddr) -> bool
[src]
pub fn le(&self, other: &RemoteNodeAddr) -> bool
[src]
pub fn gt(&self, other: &RemoteNodeAddr) -> bool
[src]
pub fn ge(&self, other: &RemoteNodeAddr) -> bool
[src]
impl StrictDecode for RemoteNodeAddr
[src]
pub fn strict_decode<D: Read>(mut d: D) -> Result<Self, Error>
[src]
pub fn strict_deserialize(data: impl AsRef<[u8]>) -> Result<Self, Error>
[src]
impl StrictEncode for RemoteNodeAddr
[src]
pub fn strict_encode<E: Write>(&self, mut e: E) -> Result<usize, Error>
[src]
pub fn strict_serialize(&self) -> Result<Vec<u8, Global>, Error>
[src]
impl StructuralEq for RemoteNodeAddr
[src]
impl StructuralPartialEq for RemoteNodeAddr
[src]
impl ToNodeAddr for RemoteNodeAddr
[src]
pub fn to_node_addr(&self, default_port: u16) -> Option<NodeAddr>
[src]
impl ToRemoteNodeAddr for RemoteNodeAddr
[src]
pub 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.
pub 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.
pub fn try_from(url: Url) -> Result<Self, Self::Error>
[src]
impl UrlString for RemoteNodeAddr
[src]
pub fn url_scheme(&self) -> &'static str
[src]
pub fn to_url_string(&self) -> String
[src]
Auto Trait Implementations
impl RefUnwindSafe for RemoteNodeAddr
[src]
impl Send for RemoteNodeAddr
[src]
impl Sync for RemoteNodeAddr
[src]
impl Unpin for RemoteNodeAddr
[src]
impl UnwindSafe for RemoteNodeAddr
[src]
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>,