pub enum SocketAddr {
Unix(UnixSocketAddr),
Ipv4(Ipv4SocketAddr),
Ipv6(Ipv6SocketAddr),
}Expand description
Adresse socket (toutes familles).
Utilisée par bind, connect, accept4, getsockname,
getpeername, sendmsg, recvmsg.
Variants§
Unix(UnixSocketAddr)
Adresse Unix locale.
Ipv4(Ipv4SocketAddr)
Adresse IPv4.
Ipv6(Ipv6SocketAddr)
Adresse IPv6.
Trait Implementations§
Source§impl Clone for SocketAddr
impl Clone for SocketAddr
Source§fn clone(&self) -> SocketAddr
fn clone(&self) -> SocketAddr
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SocketAddr
impl Debug for SocketAddr
impl Eq for SocketAddr
Source§impl PartialEq for SocketAddr
impl PartialEq for SocketAddr
impl StructuralPartialEq for SocketAddr
Auto Trait Implementations§
impl Freeze for SocketAddr
impl RefUnwindSafe for SocketAddr
impl Send for SocketAddr
impl Sync for SocketAddr
impl Unpin for SocketAddr
impl UnsafeUnpin for SocketAddr
impl UnwindSafe for SocketAddr
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