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]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for SockProtocol
[src]

impl Debug for SockProtocol
[src]

[src]

Formats the value using the given formatter. Read more

impl Eq for SockProtocol
[src]

impl Hash for SockProtocol
[src]

[src]

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

1.3.0
[src]

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

impl PartialEq for SockProtocol
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.