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
TcpTCP protocol (ip(7))
UdpUDP protocol (ip(7))
Trait Implementations
impl Clone for SockProtocol[src]
impl Clone for SockProtocolfn clone(&self) -> SockProtocol[src]
fn clone(&self) -> SockProtocolReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Copy for SockProtocol[src]
impl Copy for SockProtocolimpl Debug for SockProtocol[src]
impl Debug for SockProtocolfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Eq for SockProtocol[src]
impl Eq for SockProtocolimpl Hash for SockProtocol[src]
impl Hash for SockProtocolfn hash<__H: Hasher>(&self, state: &mut __H)[src]
fn hash<__H: Hasher>(&self, state: &mut __H)Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0
[src]Feeds a slice of this type into the given [Hasher]. Read more
impl PartialEq for SockProtocol[src]
impl PartialEq for SockProtocolAuto Trait Implementations
impl Send for SockProtocol
impl Send for SockProtocolimpl Sync for SockProtocol
impl Sync for SockProtocol