pub enum SocketType {
Ipv4,
Ipv6Only,
Ipv6,
}
Expand description
Socket type.
Variants§
Ipv4
Socket is bound to an ip4 address.
Ipv6Only
Socket is bound to an ip6 address and is not dual stack.
Ipv6
Socket is bound to an ip6 address and supports ip4 packets.
Trait Implementations§
Source§impl Clone for SocketType
impl Clone for SocketType
Source§fn clone(&self) -> SocketType
fn clone(&self) -> SocketType
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SocketType
impl Debug for SocketType
Source§impl PartialEq for SocketType
impl PartialEq for SocketType
impl Copy for SocketType
impl Eq for SocketType
impl StructuralPartialEq for SocketType
Auto Trait Implementations§
impl Freeze for SocketType
impl RefUnwindSafe for SocketType
impl Send for SocketType
impl Sync for SocketType
impl Unpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)