pub struct SocketAddress {
pub host: SocketHost,
pub port: u16,
}
Fields§
§host: SocketHost
§port: u16
Trait Implementations§
Source§impl Clone for SocketAddress
impl Clone for SocketAddress
Source§fn clone(&self) -> SocketAddress
fn clone(&self) -> SocketAddress
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 Debug for SocketAddress
impl Debug for SocketAddress
Source§impl Default for SocketAddress
impl Default for SocketAddress
Source§fn default() -> SocketAddress
fn default() -> SocketAddress
Returns the “default value” for a type. Read more
Source§impl From<SocketAddr> for SocketAddress
impl From<SocketAddr> for SocketAddress
Source§fn from(addr: SocketAddr) -> Self
fn from(addr: SocketAddr) -> Self
Converts to this type from the input type.
Source§impl From<u16> for SocketAddress
impl From<u16> for SocketAddress
Source§impl Hash for SocketAddress
impl Hash for SocketAddress
Source§impl Ord for SocketAddress
impl Ord for SocketAddress
Source§fn cmp(&self, other: &SocketAddress) -> Ordering
fn cmp(&self, other: &SocketAddress) -> 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 PartialEq for SocketAddress
impl PartialEq for SocketAddress
Source§impl PartialOrd for SocketAddress
impl PartialOrd for SocketAddress
Source§impl TryFrom<&str> for SocketAddress
impl TryFrom<&str> for SocketAddress
Source§impl TryFrom<String> for SocketAddress
impl TryFrom<String> for SocketAddress
Source§impl TryInto<SocketAddr> for SocketAddress
impl TryInto<SocketAddr> for SocketAddress
impl Eq for SocketAddress
impl StructuralPartialEq for SocketAddress
Auto Trait Implementations§
impl Freeze for SocketAddress
impl RefUnwindSafe for SocketAddress
impl Send for SocketAddress
impl Sync for SocketAddress
impl Unpin for SocketAddress
impl UnwindSafe for SocketAddress
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.