We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Session
1 parent 1895bc7 commit a733206Copy full SHA for a733206
src/session.rs
@@ -73,7 +73,7 @@ impl Session {
73
/// simply pass `None` to `master_log`.
74
///
75
/// [`Session`] created this way will not be terminated on drop,
76
- /// but can be forced terminated by [`Session::force_terminate`].
+ /// but can be forced terminated by [`Session::close`].
77
78
/// This connects to the ssh multiplex master using process mux impl.
79
#[cfg(feature = "process-mux")]
@@ -317,6 +317,8 @@ impl Session {
317
}
318
319
/// Terminate the remote connection.
320
+ /// It would terminate the ssh multiplex server
321
+ /// regardless of how it is created.
322
pub async fn close(self) -> Result<(), Error> {
323
delegate!(self.0, imp, { imp.close().await })
324
0 commit comments