Struct skyway_webrtc_gateway_api::prelude::SocketInfo
source · 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
sourceimpl<T: Clone + SerializableId> Clone for SocketInfo<T>
impl<T: Clone + SerializableId> Clone for SocketInfo<T>
sourcefn clone(&self) -> SocketInfo<T>
fn clone(&self) -> SocketInfo<T>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<T: Debug + SerializableId> Debug for SocketInfo<T>
impl<T: Debug + SerializableId> Debug for SocketInfo<T>
sourceimpl<'de, X: SerializableId> Deserialize<'de> for SocketInfo<X>
impl<'de, X: SerializableId> Deserialize<'de> for SocketInfo<X>
sourcefn 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
sourceimpl<T: Hash + SerializableId> Hash for SocketInfo<T>
impl<T: Hash + SerializableId> Hash for SocketInfo<T>
sourceimpl<T: Ord + SerializableId> Ord for SocketInfo<T>
impl<T: Ord + SerializableId> Ord for SocketInfo<T>
sourcefn cmp(&self, other: &SocketInfo<T>) -> Ordering
fn cmp(&self, other: &SocketInfo<T>) -> Ordering
1.21.0 · sourcefn 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
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl<T: PartialEq + SerializableId> PartialEq<SocketInfo<T>> for SocketInfo<T>
impl<T: PartialEq + SerializableId> PartialEq<SocketInfo<T>> for SocketInfo<T>
sourcefn eq(&self, other: &SocketInfo<T>) -> bool
fn eq(&self, other: &SocketInfo<T>) -> bool
sourceimpl<T: PartialOrd + SerializableId> PartialOrd<SocketInfo<T>> for SocketInfo<T>
impl<T: PartialOrd + SerializableId> PartialOrd<SocketInfo<T>> for SocketInfo<T>
sourcefn partial_cmp(&self, other: &SocketInfo<T>) -> Option<Ordering>
fn partial_cmp(&self, other: &SocketInfo<T>) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresourceimpl<T: SerializableId> SerializableSocket<T> for SocketInfo<T>
impl<T: SerializableId> SerializableSocket<T> for SocketInfo<T>
sourceimpl<T: SerializableId> Serialize for SocketInfo<T>
impl<T: SerializableId> Serialize for SocketInfo<T>
impl<T: Eq + SerializableId> Eq for SocketInfo<T>
impl<T: SerializableId> StructuralEq for SocketInfo<T>
impl<T: SerializableId> StructuralPartialEq for SocketInfo<T>
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<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,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.