Struct mysql_async_support_rt::SshTunnelManager [−][src]
pub struct SshTunnelManager;
Expand description
Opens SSH sessions and creates tunnels for query targets.
Implementations
pub async fn prepare_tunnels<'qt>(
jump_host_addr: &HostAddress<'_>,
jump_host_auth_params: &JumpHostAuthParams<'_>,
query_targets: &'qt [QueryTarget<'qt>]
) -> Result<SshTunnelMap<'qt>, Error>
pub async fn prepare_tunnels<'qt>(
jump_host_addr: &HostAddress<'_>,
jump_host_auth_params: &JumpHostAuthParams<'_>,
query_targets: &'qt [QueryTarget<'qt>]
) -> Result<SshTunnelMap<'qt>, Error>
Opens an SSH session and creates a tunnel per query target.
The [SshSession
] returned by this function should be kept alive until
all the tunnels are no longer needed.
Callers of this function should appropriately limit the number of query
targets per tunnel, perhaps by calling chunks
.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for SshTunnelManager
impl Send for SshTunnelManager
impl Sync for SshTunnelManager
impl Unpin for SshTunnelManager
impl UnwindSafe for SshTunnelManager