[−][src]Enum internet2::session::node_addr::NodeAddr
Node address which can be represent by either some local address without encryption information (i.e. node public key) or remote node address containing node public key
Variants
Local(LocalSocketAddr)
Local node using plain transport protocol LocalSocketAddr
information and no encryption
Remote(RemoteNodeAddr)
Remote node required to have a node public key used for ID and encryption
Trait Implementations
impl Accept for NodeAddr
[src]
impl Clone for NodeAddr
[src]
impl Connect for NodeAddr
[src]
impl Debug for NodeAddr
[src]
impl Display for NodeAddr
[src]
impl Eq for NodeAddr
[src]
impl From<LocalSocketAddr> for NodeAddr
[src]
pub fn from(addr: LocalSocketAddr) -> Self
[src]
impl From<PartialNodeAddr> for NodeAddr
[src]
pub fn from(locator: PartialNodeAddr) -> Self
[src]
impl From<RemoteNodeAddr> for NodeAddr
[src]
pub fn from(addr: RemoteNodeAddr) -> Self
[src]
impl FromStr for NodeAddr
[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 NodeAddr
[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 NodeAddr
[src]
pub fn cmp(&self, other: &NodeAddr) -> 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<NodeAddr> for NodeAddr
[src]
impl PartialOrd<NodeAddr> for NodeAddr
[src]
pub fn partial_cmp(&self, other: &NodeAddr) -> Option<Ordering>
[src]
pub fn lt(&self, other: &NodeAddr) -> bool
[src]
pub fn le(&self, other: &NodeAddr) -> bool
[src]
pub fn gt(&self, other: &NodeAddr) -> bool
[src]
pub fn ge(&self, other: &NodeAddr) -> bool
[src]
impl StrictDecode for NodeAddr
[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 NodeAddr
[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 NodeAddr
[src]
impl StructuralPartialEq for NodeAddr
[src]
impl ToNodeAddr for NodeAddr
[src]
pub fn to_node_addr(&self, default_port: u16) -> Option<NodeAddr>
[src]
impl TryFrom<&'_ str> for NodeAddr
[src]
type Error = <NodeAddr as FromStr>::Err
The type returned in the event of a conversion error.
pub fn try_from(value: &str) -> Result<Self, Self::Error>
[src]
impl TryFrom<NodeAddr> for ZmqSocketAddr
[src]
type Error = AddrError
The type returned in the event of a conversion error.
pub fn try_from(value: NodeAddr) -> Result<Self, Self::Error>
[src]
impl TryFrom<Url> for NodeAddr
[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 NodeAddr
[src]
pub fn url_scheme(&self) -> &'static str
[src]
pub fn to_url_string(&self) -> String
[src]
Auto Trait Implementations
impl RefUnwindSafe for NodeAddr
[src]
impl Send for NodeAddr
[src]
impl Sync for NodeAddr
[src]
impl Unpin for NodeAddr
[src]
impl UnwindSafe for NodeAddr
[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>,