mirror of
https://github.com/tokio-rs/tokio.git
synced 2025-09-28 12:10:37 +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
|
/// 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
|
/// can convert to and from the standard library `SocketAddr` type using the
|
||||||
/// [`From`] trait.
|
/// [`From`] trait.
|
||||||
|
#[derive(Clone)]
|
||||||
pub struct SocketAddr(pub(super) std::os::unix::net::SocketAddr);
|
pub struct SocketAddr(pub(super) std::os::unix::net::SocketAddr);
|
||||||
|
|
||||||
impl SocketAddr {
|
impl SocketAddr {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user