There was an error while loading. Please reload this page.
Handle::tcpip_forward
Handle::streamlocal_forward
&self
1 parent b7ce487 commit bebe8c0Copy full SHA for bebe8c0
1 file changed
russh/src/client/mod.rs
@@ -696,7 +696,7 @@ impl<H: Handler> Handle<H> {
696
///
697
/// If port == 0 the server will choose a port that will be returned, returns 0 otherwise
698
pub async fn tcpip_forward<A: Into<String>>(
699
- &mut self,
+ &self,
700
address: A,
701
port: u32,
702
) -> Result<u32, crate::Error> {
@@ -748,7 +748,7 @@ impl<H: Handler> Handle<H> {
748
749
// Requests the server to open a UDS forward channel
750
pub async fn streamlocal_forward<A: Into<String>>(
751
752
socket_path: A,
753
) -> Result<(), crate::Error> {
754
let (reply_send, reply_recv) = oneshot::channel();
0 commit comments