From 1e0f28946aeee4606376de8043a0c1da056fa05c Mon Sep 17 00:00:00 2001 From: bold Date: Mon, 30 Dec 2019 13:54:39 +0100 Subject: derive clone for session --- src/session.rs | 1 + 1 file changed, 1 insertion(+) 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, } -- cgit v1.2.3