Enum nix::sys::socket::SockProtocol[][src]

#[repr(i32)]
pub enum SockProtocol { Tcp, Udp, }

Constants used in socket and socketpair to specify the protocol to use.

Variants

TCP protocol (ip(7))

UDP protocol (ip(7))

Trait Implementations

impl Clone for SockProtocol
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for SockProtocol
[src]

impl Debug for SockProtocol
[src]

Formats the value using the given formatter. Read more

impl Eq for SockProtocol
[src]

impl Hash for SockProtocol
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl PartialEq for SockProtocol
[src]

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 Send for SockProtocol

impl Sync for SockProtocol