pub enum SockType {
Stream,
DGram,
Raw,
RDM,
}Available on crate feature
dns only.Expand description
Socket Type
Cross platform enum of common Socket Types. For missing types use
the libc and winapi crates, depending on platform.
Variants
Stream
Sequenced, reliable, connection-based byte streams.
DGram
Connectionless, unreliable datagrams of fixed max length.
Raw
Raw protocol interface.
RDM
Reliably-delivered messages.
Trait Implementations
impl Copy for SockType
impl StructuralPartialEq for SockType
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
