Enum nix::sys::socket::SockProtocol   
#[repr(i32)]
#[non_exhaustive]
pub enum SockProtocol {    
    Tcp,
    Udp,
    NetlinkRoute,
    NetlinkUserSock,
    NetlinkSockDiag,
    NetlinkSELinux,
    NetlinkISCSI,
    NetlinkAudit,
    NetlinkFIBLookup,
    NetlinkNetFilter,
    NetlinkSCSITransport,
    NetlinkRDMA,
    NetlinkIPv6Firewall,
    NetlinkDECNetRoutingMessage,
    NetlinkKObjectUEvent,
    NetlinkCrypto,
}Documentation
Constants used in socket and socketpair
to specify the protocol to use.
Variants
TcpTCP protocol (ip(7))
UdpUDP protocol (ip(7))
NetlinkRouteReceives routing and link updates and may be used to modify the routing tables (both IPv4 and IPv6), IP addresses, link (ref)
NetlinkUserSockReserved for user-mode socket protocols (ref)
NetlinkSockDiagQuery information about sockets of various protocol families from the kernel (ref)
NetlinkSELinuxSELinux event notifications. (ref)
NetlinkISCSIOpen-iSCSI (ref)
NetlinkAuditAuditing (ref)
NetlinkFIBLookupAccess to FIB lookup from user space (ref)
NetlinkNetFilterNetfilter subsystem (ref)
NetlinkSCSITransportSCSI Transports (ref)
NetlinkRDMAInfiniband RDMA (ref)
NetlinkIPv6FirewallTransport IPv6 packets from netfilter to user space. Used by ip6_queue kernel module. (ref)
NetlinkDECNetRoutingMessageDECnet routing messages (ref)
NetlinkKObjectUEventKernel messages to user space (ref)
NetlinkCryptoNetlink interface to request information about ciphers registered with the kernel crypto API as well as allow configuration of the kernel crypto API. (ref)
Trait Implementations
impl Clone for SockProtocol
fn clone(&Self) -> SockProtocolimpl Copy for SockProtocolimpl Debug for SockProtocol
fn fmt(&Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Resultimpl Eq for SockProtocolimpl Hash for SockProtocol
fn hash<__H: $crate::hash::Hasher>(&Self, state: &mut __H) -> ()impl PartialEq<SockProtocol> for SockProtocol
fn eq(&Self, other: &SockProtocol) -> boolimpl StructuralEq for SockProtocolimpl StructuralPartialEq for SockProtocolAuto Trait Implementations
impl RefUnwindSafe for SockProtocolimpl Send for SockProtocolimpl Sync for SockProtocolimpl Unpin for SockProtocolimpl UnwindSafe for SockProtocolBlanket Implementations
impl<T> BorrowMut<T> for T
where
    T: ?Sized,
where
T: ?Sized,
fn borrow_mut(&mut Self) -> &mut T