Skip to content

Commit

Permalink
Make transports clone
Browse files Browse the repository at this point in the history
  • Loading branch information
Frando committed Apr 1, 2022
1 parent c10af71 commit 5e27609
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/transport/combined.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ impl Stream for CombinedTransport {
}
}

#[derive(Clone)]
pub enum CombinedStream {
Tcp(TcpStream),
#[cfg(feature = "transport_utp")]
Expand Down
2 changes: 1 addition & 1 deletion src/transport/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ pub trait Transport:
// ) -> Poll<Option<io::Result<Connection<Self::Connection>>>>;
}

#[derive(Debug)]
#[derive(Debug, Clone)]
pub struct Connection<T>
where
T: Debug,
Expand Down

0 comments on commit 5e27609

Please sign in to comment.