Enum nix::sys::socket::SockType   
#[repr(i32)]
#[non_exhaustive]
pub enum SockType {    
    Stream,
    Datagram,
    SeqPacket,
    Raw,
    Rdm,
}Documentation
These constants are used to specify the communication semantics
when creating a socket with socket()
Variants
StreamProvides sequenced, reliable, two-way, connection- based byte streams. An out-of-band data transmission mechanism may be supported.
DatagramSupports datagrams (connectionless, unreliable messages of a fixed maximum length).
SeqPacketProvides a sequenced, reliable, two-way connection- based data transmission path for datagrams of fixed maximum length; a consumer is required to read an entire packet with each input system call.
RawProvides raw network protocol access.
RdmProvides a reliable datagram layer that does not guarantee ordering.
Trait Implementations
impl Debug for SockType
fn fmt(&Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Resultimpl StructuralEq for SockTypeimpl StructuralPartialEq for SockTypeAuto Trait Implementations
impl RefUnwindSafe for SockTypeimpl UnwindSafe for SockTypeBlanket Implementations
impl<T> BorrowMut<T> for T
where
    T: ?Sized,
where
T: ?Sized,
fn borrow_mut(&mut Self) -> &mut T