Enum ddmw_client::conn::ProtAddr[][src]

pub enum ProtAddr {
    Tcp(String),
    Uds(PathBuf),
}
Expand description

Protocol selection enum.

Variants

Tcp(String)

Connect over TCP/IP. The String is a socket address in the form <host>:<port>.

Tuple Fields of Tcp

0: String
Uds(PathBuf)

Connect over unix local domain sockets. The PathBuf is a file system socket path.

Tuple Fields of Uds

0: PathBuf

Implementations

Returns true is this objects represents a TCP/IP address.

Trait Implementations

Formats the value using the given formatter. Read more

Parse a &str and turn it into a ProtAddr.

On unixy platforms if the addr contains one or more slashes (/) it is assumed the address is a unix local domain socket address. Otherwise it is assumed the address is an IP socket address, in the form <host>:<port>.

The associated error which can be returned from parsing.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.