Enum tendermint::net::Address [−][src]
pub enum Address { Tcp { peer_id: Option<Id>, host: String, port: u16, }, Unix { path: PathBuf, }, }
Expand description
Remote address (TCP or UNIX socket)
For TCP-based addresses, this supports both IPv4 and IPv6 addresses and hostnames.
If the scheme is not supplied (i.e. tcp://
or unix://
) when parsing
from a string, it is assumed to be a TCP address.
Variants
TCP connections
Show fields
UNIX domain sockets
Show fields
Fields of Unix
path: PathBuf
Path to a UNIX domain socket path
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Address
impl UnwindSafe for Address
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V