Enum nng::SocketAddr [−][src]
pub enum SocketAddr {
InProc(String),
Ipc(PathBuf),
Inet(SocketAddrV4),
Inet6(SocketAddrV6),
// some variants omitted
}
Expand description
Represents the addresses used by the underlying transports.
Variants
InProc(String)
Tuple Fields
0: String
An address associated with intra-process communication.
Ipc(PathBuf)
Tuple Fields
0: PathBuf
Represents an address associated with IPC communication.
Inet(SocketAddrV4)
Tuple Fields
0: SocketAddrV4
Address for TCP/IP (v4) communication.
Inet6(SocketAddrV6)
Tuple Fields
0: SocketAddrV6
Address for TCP/IP (v6) communication.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for SocketAddr
impl Send for SocketAddr
impl Sync for SocketAddr
impl Unpin for SocketAddr
impl UnwindSafe for SocketAddr
Blanket Implementations
Mutably borrows from an owned value. Read more