pub enum SocketType {
TCP,
UDP,
RawUDP,
}Expand description
Determines the socket protocol to be used.
Variants§
TCP
Socket type with features like retransmission and message ordering making it most reliable. Best to use if you don not care much about the specific details.
UDP
Socket type with limited safety features making it inherently unreliable. Best to use this if you want to define a fast low level protocol.
RawUDP
Socket type with limited safety but with a wider range of function special to UDP. Only use this if you need features like multi casting and high flexibility.
Auto Trait Implementations§
impl Freeze for SocketType
impl RefUnwindSafe for SocketType
impl Send for SocketType
impl Sync for SocketType
impl Unpin for SocketType
impl UnsafeUnpin for SocketType
impl UnwindSafe for SocketType
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