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§
impl Copy for SockType
impl Eq for SockType
impl StructuralPartialEq for SockType
Auto Trait Implementations§
impl Freeze for SockType
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