mirror of
https://github.com/tokio-rs/tokio.git
synced 2025-09-25 12:00:35 +00:00
net: derive Clone
for net::unix::SocketAddr
(#7422)
This commit is contained in:
parent
e2b175848b
commit
69290a6432
@ -6,6 +6,7 @@ use std::path::Path;
|
||||
/// This type is a thin wrapper around [`std::os::unix::net::SocketAddr`]. You
|
||||
/// can convert to and from the standard library `SocketAddr` type using the
|
||||
/// [`From`] trait.
|
||||
#[derive(Clone)]
|
||||
pub struct SocketAddr(pub(super) std::os::unix::net::SocketAddr);
|
||||
|
||||
impl SocketAddr {
|
||||
|
Loading…
x
Reference in New Issue
Block a user