diff options
author | Jake McGinty <me@jake.su> | 2018-04-25 01:44:38 -0700 |
---|---|---|
committer | Jake McGinty <me@jake.su> | 2018-04-25 01:44:38 -0700 |
commit | 01c646a7ee975966e7ad5e80ac449f73bbd64d65 (patch) | |
tree | ccdf035d9c1e58f234c57557cf4a1e38447fb552 /src/udp/mod.rs | |
parent | udp: use latest nix draft, which uses latest libc (diff) | |
download | wireguard-rs-01c646a7ee975966e7ad5e80ac449f73bbd64d65.tar.xz wireguard-rs-01c646a7ee975966e7ad5e80ac449f73bbd64d65.zip |
udp: make Endpoint implement Copy
Diffstat (limited to '')
-rw-r--r-- | src/udp/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/udp/mod.rs b/src/udp/mod.rs index 7de1fb1..377092e 100644 --- a/src/udp/mod.rs +++ b/src/udp/mod.rs @@ -40,7 +40,7 @@ pub struct UdpSocket { // but this is for simplicity because nix only offers a to_std() that returns // `SocketAddr` from its `SockAddr`, so it makes the code cleaner with little // performance impact. -#[derive(Clone)] +#[derive(Clone, Copy)] pub enum Endpoint { V4(SocketAddr, Option<in_pktinfo>), V6(SocketAddr, Option<in6_pktinfo>) |