pub struct SshTunnelRef {
pub ssh_connection_id: String,
pub remote_host: String,
pub remote_port: u16,
}Expand description
Reference to an existing ConnectionManager-managed SSH connection that
should be used as a direct-tcpip tunnel for this Postgres connection.
Holding only the connection_id (rather than an Arc<RwLock<SshClient>>)
keeps the config purely data — the actual SshClient is resolved at
connect time from the manager, so a tunnel can be re-established after
SSH reconnect without rewriting the Postgres profile.
Fields§
§ssh_connection_id: StringConnectionManager ID of the SSH connection to tunnel through.
remote_host: StringHost to forward to, as seen from the SSH server.
remote_port: u16Port to forward to, as seen from the SSH server.
Trait Implementations§
Source§impl Clone for SshTunnelRef
impl Clone for SshTunnelRef
Source§fn clone(&self) -> SshTunnelRef
fn clone(&self) -> SshTunnelRef
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SshTunnelRef
impl Debug for SshTunnelRef
Source§impl<'de> Deserialize<'de> for SshTunnelRef
impl<'de> Deserialize<'de> for SshTunnelRef
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SshTunnelRef
impl RefUnwindSafe for SshTunnelRef
impl Send for SshTunnelRef
impl Sync for SshTunnelRef
impl Unpin for SshTunnelRef
impl UnsafeUnpin for SshTunnelRef
impl UnwindSafe for SshTunnelRef
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