Enum nix::sys::socket::SockType
[−]
[src]
#[repr(i32)]pub enum SockType { Stream, Datagram, SeqPacket, Raw, Rdm, }
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 Clone for SockType[src]
fn clone(&self) -> SockType[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Copy for SockType[src]
impl PartialEq for SockType[src]
fn eq(&self, __arg_0: &SockType) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
This method tests for !=.