Enum dns_lookup::SockType
source · pub enum SockType {
Stream,
DGram,
Raw,
RDM,
}
Expand description
Socket Type
Cross platform enum of common Socket Types. For missing types use
the libc
and windows-sys
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§
source§impl PartialEq<SockType> for i32
impl PartialEq<SockType> for i32
source§impl PartialEq for SockType
impl PartialEq for SockType
impl Copy for SockType
impl Eq for SockType
impl StructuralEq 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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more