#[repr(u32)]pub enum SocketDomain {
Local = 1,
Inet4 = 2,
Inet6 = 3,
Packet = 4,
}Expand description
Socket domain (address family) - neutral to any specific OS
Variants§
Local = 1
Local inter-process communication (Unix domain socket equivalent, but OS-agnostic)
Inet4 = 2
IPv4 Internet protocols
Inet6 = 3
IPv6 Internet protocols
Packet = 4
Packet-level communication
Trait Implementations§
Source§impl Clone for SocketDomain
impl Clone for SocketDomain
Source§fn clone(&self) -> SocketDomain
fn clone(&self) -> SocketDomain
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SocketDomain
impl Debug for SocketDomain
Source§impl Hash for SocketDomain
impl Hash for SocketDomain
Source§impl Ord for SocketDomain
impl Ord for SocketDomain
Source§impl PartialEq for SocketDomain
impl PartialEq for SocketDomain
Source§impl PartialOrd for SocketDomain
impl PartialOrd for SocketDomain
Source§fn partial_cmp(&self, other: &SocketDomain) -> Option<Ordering>
fn partial_cmp(&self, other: &SocketDomain) -> Option<Ordering>
impl Copy for SocketDomain
impl Eq for SocketDomain
impl StructuralPartialEq for SocketDomain
Auto Trait Implementations§
impl Freeze for SocketDomain
impl RefUnwindSafe for SocketDomain
impl Send for SocketDomain
impl Sync for SocketDomain
impl Unpin for SocketDomain
impl UnwindSafe for SocketDomain
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)§impl<Q, K> Comparable<K> for Qwhere
Q: Ord + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Comparable<K> for Qwhere
Q: Ord + ?Sized,
K: Borrow<Q> + ?Sized,
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.