Skip to content

Commit

Permalink
Merge pull request #12 from bltavares/clone-messages
Browse files Browse the repository at this point in the history
Make Messages clone
  • Loading branch information
bltavares authored May 23, 2021
2 parents 4ed6030 + e10da8f commit 788fce1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/unix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,14 @@ pub struct MulticastSocket {
buffer_size: usize,
}

#[derive(Debug)]
#[derive(Debug, Clone)]
pub enum Interface {
Default,
Ip(Ipv4Addr),
Index(i32),
}

#[derive(Debug)]
#[derive(Debug, Clone)]
pub struct Message {
pub data: Vec<u8>,
pub origin_address: SocketAddrV4,
Expand Down
4 changes: 2 additions & 2 deletions src/win.rs
Original file line number Diff line number Diff line change
Expand Up @@ -232,14 +232,14 @@ pub struct MulticastSocket {
buffer_size: usize,
}

#[derive(Debug)]
#[derive(Debug, Clone)]
pub enum Interface {
Default,
Ip(Ipv4Addr),
Index(u32),
}

#[derive(Debug)]
#[derive(Debug, Clone)]
pub struct Message {
pub data: Vec<u8>,
pub origin_address: SocketAddrV4,
Expand Down

0 comments on commit 788fce1

Please # to comment.