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

Provides sequenced, reliable, two-way, connection- based byte streams. An out-of-band data transmission mechanism may be supported.

Supports datagrams (connectionless, unreliable messages of a fixed maximum length).

Provides 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.

Provides raw network protocol access.

Provides a reliable datagram layer that does not guarantee ordering.

Trait Implementations

impl Clone for SockType
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for SockType
[src]

impl PartialEq for SockType
[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 !=.

impl Eq for SockType
[src]

impl Debug for SockType
[src]

[src]

Formats the value using the given formatter. Read more