Enum inet2_addr::ServerAddr
source · pub enum ServerAddr {
Bronze(NodeAddr),
Tcp(InetSocketAddr),
Ipc(String),
}
Expand description
Server address representing connection to a remote or a local server over ZMQ protocol.
Variants§
Bronze(NodeAddr)
Encrypted connection over TCP
Tcp(InetSocketAddr)
Unencrypted connection over TCP
Ipc(String)
Local IPC connection
Trait Implementations§
source§impl Clone for ServerAddr
impl Clone for ServerAddr
source§fn clone(&self) -> ServerAddr
fn clone(&self) -> ServerAddr
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 ServerAddr
impl Debug for ServerAddr
source§impl Display for ServerAddr
impl Display for ServerAddr
source§impl From<InetSocketAddr> for ServerAddr
impl From<InetSocketAddr> for ServerAddr
source§fn from(v: InetSocketAddr) -> Self
fn from(v: InetSocketAddr) -> Self
Converts to this type from the input type.
source§impl From<NodeAddr> for ServerAddr
impl From<NodeAddr> for ServerAddr
source§impl From<String> for ServerAddr
impl From<String> for ServerAddr
source§impl FromStr for ServerAddr
impl FromStr for ServerAddr
source§impl Hash for ServerAddr
impl Hash for ServerAddr
source§impl Ord for ServerAddr
impl Ord for ServerAddr
source§fn cmp(&self, other: &ServerAddr) -> Ordering
fn cmp(&self, other: &ServerAddr) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<ServerAddr> for ServerAddr
impl PartialEq<ServerAddr> for ServerAddr
source§fn eq(&self, other: &ServerAddr) -> bool
fn eq(&self, other: &ServerAddr) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<ServerAddr> for ServerAddr
impl PartialOrd<ServerAddr> for ServerAddr
source§fn partial_cmp(&self, other: &ServerAddr) -> Option<Ordering>
fn partial_cmp(&self, other: &ServerAddr) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more