Enum std::io::net::addrinfo::ProtocolUnstable [-]  [+] [src]

pub enum Protocol {
    TCP,
    UDP,
}

A transport protocol associated with either a hint or a return value of lookup

Variants

TCP
UDP

Trait Implementations

Derived Implementations

impl Show for Protocol

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Copy for Protocol