Struct ssh_jumper_model::SshTunnelParams [−][src]
Parameters to create the SSH tunnel.
Fields
jump_host: HostAddress<'tunnel>
Jump host address.
jump_host_auth_params: JumpHostAuthParams<'tunnel>
SSH auth params for the jump host.
local_socket: SocketAddr
Local socket to forward to the target host.
target_socket: HostSocketParams<'tunnel>
Target host address and port.
Implementations
impl<'tunnel> SshTunnelParams<'tunnel>
[src]
pub fn new(
jump_host: HostAddress<'tunnel>,
jump_host_auth_params: JumpHostAuthParams<'tunnel>,
target_socket: HostSocketParams<'tunnel>
) -> Self
[src]
jump_host: HostAddress<'tunnel>,
jump_host_auth_params: JumpHostAuthParams<'tunnel>,
target_socket: HostSocketParams<'tunnel>
) -> Self
Returns new SshTunnelParams
.
The local socket IP is defaulted to 127.0.0.1
. Use the
with_local_ip
method if you would
like to change this.
The local socket port is defaulted to 0
, which means the operating
system will allocate a port upon binding. Use the
with_local_port
method if you would like to
change this.
pub fn with_local_ip(self, ip: IpAddr) -> Self
[src]
Sets the local IP to use.
Useful if you are connecting over a VPN, and need to bind to the local IP for that network interface.
pub fn with_local_port(self, port: u16) -> Self
[src]
Sets the local port to use.
Useful if you want use a known port for forwarding.
Trait Implementations
impl<'tunnel> Clone for SshTunnelParams<'tunnel>
[src]
fn clone(&self) -> SshTunnelParams<'tunnel>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'tunnel> Debug for SshTunnelParams<'tunnel>
[src]
Auto Trait Implementations
impl<'tunnel> RefUnwindSafe for SshTunnelParams<'tunnel>
impl<'tunnel> Send for SshTunnelParams<'tunnel>
impl<'tunnel> Sync for SshTunnelParams<'tunnel>
impl<'tunnel> Unpin for SshTunnelParams<'tunnel>
impl<'tunnel> UnwindSafe for SshTunnelParams<'tunnel>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,