pub struct RemoteForward { /* private fields */ }Expand description
Remote port forwarding handle.
Created by SshClient::remote_forward().
Implementations§
Source§impl RemoteForward
impl RemoteForward
Sourcepub fn bind_addr(&self) -> &ForwardAddr
pub fn bind_addr(&self) -> &ForwardAddr
Returns the remote bind address.
Sourcepub fn local_target(&self) -> &ForwardAddr
pub fn local_target(&self) -> &ForwardAddr
Returns the local target address.
Sourcepub async fn run(self) -> FynxResult<()>
pub async fn run(self) -> FynxResult<()>
Runs the remote forwarder.
This method handles incoming forwarded-tcpip channels from the server.
When the SSH server receives a connection on the remote address, it will send a CHANNEL_OPEN message with type “forwarded-tcpip”. This method waits for those messages and handles each incoming connection.
Auto Trait Implementations§
impl !RefUnwindSafe for RemoteForward
impl !UnwindSafe for RemoteForward
impl Freeze for RemoteForward
impl Send for RemoteForward
impl Sync for RemoteForward
impl Unpin for RemoteForward
impl UnsafeUnpin for RemoteForward
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