pub struct SocketInfo<T: SerializableId> { /* private fields */ }
Expand description
There are several field which has some kind of id and SocketAddr.
This struct covers all of them.
Trait Implementations§
Source§impl<T: Clone + SerializableId> Clone for SocketInfo<T>
impl<T: Clone + SerializableId> Clone for SocketInfo<T>
Source§fn clone(&self) -> SocketInfo<T>
fn clone(&self) -> SocketInfo<T>
Returns a duplicate 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<T: Debug + SerializableId> Debug for SocketInfo<T>
impl<T: Debug + SerializableId> Debug for SocketInfo<T>
Source§impl<'de, X: SerializableId> Deserialize<'de> for SocketInfo<X>
impl<'de, X: SerializableId> Deserialize<'de> for SocketInfo<X>
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<T: Hash + SerializableId> Hash for SocketInfo<T>
impl<T: Hash + SerializableId> Hash for SocketInfo<T>
Source§impl<T: Ord + SerializableId> Ord for SocketInfo<T>
impl<T: Ord + SerializableId> Ord for SocketInfo<T>
Source§fn cmp(&self, other: &SocketInfo<T>) -> Ordering
fn cmp(&self, other: &SocketInfo<T>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<T: PartialEq + SerializableId> PartialEq for SocketInfo<T>
impl<T: PartialEq + SerializableId> PartialEq for SocketInfo<T>
Source§impl<T: PartialOrd + SerializableId> PartialOrd for SocketInfo<T>
impl<T: PartialOrd + SerializableId> PartialOrd for SocketInfo<T>
Source§impl<T: SerializableId> SerializableSocket<T> for SocketInfo<T>
impl<T: SerializableId> SerializableSocket<T> for SocketInfo<T>
Source§impl<T: SerializableId> Serialize for SocketInfo<T>
impl<T: SerializableId> Serialize for SocketInfo<T>
impl<T: Eq + SerializableId> Eq for SocketInfo<T>
impl<T: SerializableId> StructuralPartialEq for SocketInfo<T>
Auto Trait Implementations§
impl<T> Freeze for SocketInfo<T>where
T: Freeze,
impl<T> RefUnwindSafe for SocketInfo<T>where
T: RefUnwindSafe,
impl<T> Send for SocketInfo<T>where
T: Send,
impl<T> Sync for SocketInfo<T>where
T: Sync,
impl<T> Unpin for SocketInfo<T>where
T: Unpin,
impl<T> UnwindSafe for SocketInfo<T>where
T: UnwindSafe,
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§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.