Enum nix::sys::socket::SockType [−][src]
#[repr(i32)] pub enum SockType { Stream, Datagram, SeqPacket, Raw, Rdm, }
Expand description
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 Copy for SockType
[src]
impl Eq for SockType
[src]
impl StructuralEq for SockType
[src]
impl StructuralPartialEq for SockType
[src]
Auto Trait Implementations
impl RefUnwindSafe for SockType
impl Send for SockType
impl Sync for SockType
impl Unpin for SockType
impl UnwindSafe for SockType
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more