pub struct SshSession {
pub handle: Arc<Mutex<Handle<ClientHandler>>>,
}Expand description
Holds the russh session for the tunnel’s lifetime. Dropping this terminates the session and tears down all channels using it — standard Rust ownership instead of an explicit close protocol.
Fields§
§handle: Arc<Mutex<Handle<ClientHandler>>>Auto Trait Implementations§
impl !RefUnwindSafe for SshSession
impl !UnwindSafe for SshSession
impl Freeze for SshSession
impl Send for SshSession
impl Sync for SshSession
impl Unpin for SshSession
impl UnsafeUnpin for SshSession
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more