summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbold <bold@cryptoguru.com>2019-12-30 13:54:39 +0100
committerWez Furlong <wez@wezfurlong.org>2020-01-18 08:40:18 -0800
commit1e0f28946aeee4606376de8043a0c1da056fa05c (patch)
tree84a17207ddeff313a975af5304c682ace84052fb
parentacc3c48d3530af233b5ea213cb8fe26fc15bc74e (diff)
downloadssh2-rs-1e0f28946aeee4606376de8043a0c1da056fa05c.zip
derive clone for session
-rw-r--r--src/session.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/session.rs b/src/session.rs
index a20239e..664b78b 100644
--- a/src/session.rs
+++ b/src/session.rs
@@ -78,6 +78,7 @@ unsafe impl Send for SessionInner {}
/// All other structures are based on an SSH session and cannot outlive a
/// session. Sessions are created and then have the TCP socket handed to them
/// (via the `set_tcp_stream` method).
+#[derive(Clone)]
pub struct Session {
inner: Arc<SessionInner>,
}