#[repr(transparent)]pub struct SocketAddress(pub socket_address);Tuple Fields§
§0: socket_addressTrait 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 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<IpAddr> for SocketAddress
impl From<IpAddr> for SocketAddress
Source§impl From<Ipv4Addr> for SocketAddress
impl From<Ipv4Addr> for SocketAddress
Source§impl From<Ipv6Addr> for SocketAddress
impl From<Ipv6Addr> for SocketAddress
Source§impl From<SocketAddr> for SocketAddress
impl From<SocketAddr> for SocketAddress
Source§fn from(value: SocketAddr) -> Self
fn from(value: SocketAddr) -> Self
Converts to this type from the input type.
Source§impl From<SocketAddrV4> for SocketAddress
impl From<SocketAddrV4> for SocketAddress
Source§fn from(value: SocketAddrV4) -> Self
fn from(value: SocketAddrV4) -> Self
Converts to this type from the input type.
Source§impl From<SocketAddrV6> for SocketAddress
impl From<SocketAddrV6> for SocketAddress
Source§fn from(value: SocketAddrV6) -> Self
fn from(value: SocketAddrV6) -> Self
Converts to this type from the input type.
Source§impl From<SocketAddress> for Endpoint
impl From<SocketAddress> for Endpoint
Source§fn from(value: SocketAddress) -> Self
fn from(value: SocketAddress) -> Self
Converts to this type from the input type.
Source§impl From<SocketAddress> for IpAddr
impl From<SocketAddress> for IpAddr
Source§fn from(value: SocketAddress) -> Self
fn from(value: SocketAddress) -> Self
Converts to this type from the input type.
Source§impl From<SocketAddress> for SocketAddr
impl From<SocketAddress> for SocketAddr
Source§fn from(value: SocketAddress) -> Self
fn from(value: SocketAddress) -> Self
Converts to this type from the input type.
Source§impl TryFrom<Endpoint> for SocketAddress
impl TryFrom<Endpoint> for SocketAddress
impl Copy for SocketAddress
Auto Trait Implementations§
impl Freeze for SocketAddress
impl RefUnwindSafe for SocketAddress
impl Send for SocketAddress
impl StoreCopy 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