diff options
author | bold <bold@cryptoguru.com> | 2019-12-30 13:54:39 +0100 |
---|---|---|
committer | Wez Furlong <wez@wezfurlong.org> | 2020-01-18 08:40:18 -0800 |
commit | 1e0f28946aeee4606376de8043a0c1da056fa05c (patch) | |
tree | 84a17207ddeff313a975af5304c682ace84052fb | |
parent | acc3c48d3530af233b5ea213cb8fe26fc15bc74e (diff) | |
download | ssh2-rs-1e0f28946aeee4606376de8043a0c1da056fa05c.zip |
derive clone for session
-rw-r--r-- | src/session.rs | 1 |
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>, } |