Enum mz_postgres_util::SshTunnelConfig
source · [−]pub enum SshTunnelConfig {
Direct,
Tunnel {
host: String,
port: u16,
user: String,
keypair: SshKeypair,
},
}
Expand description
Configuration on how to connect a given Postgres database.
Variants
Direct
Establish a direct TCP connection to the database host.
Tunnel
Fields
host: String
Hostname of the SSH bastion host
port: u16
Port where sshd
is running in the bastion host
user: String
Username to be used in the SSH connection
keypair: SshKeypair
SSH keypair used for authentication.
Establish a TCP connection to the database via an SSH tunnel. This means first establishing an SSH connection to a bastion host, and then opening a separate connection from that host to the database. This is commonly referred by vendors as a “direct SSH tunnel”, in opposition to “reverse SSH tunnel”, which is currently unsupported.
Trait Implementations
sourceimpl Clone for SshTunnelConfig
impl Clone for SshTunnelConfig
sourcefn clone(&self) -> SshTunnelConfig
fn clone(&self) -> SshTunnelConfig
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for SshTunnelConfig
impl Debug for SshTunnelConfig
sourceimpl PartialEq<SshTunnelConfig> for SshTunnelConfig
impl PartialEq<SshTunnelConfig> for SshTunnelConfig
sourcefn eq(&self, other: &SshTunnelConfig) -> bool
fn eq(&self, other: &SshTunnelConfig) -> bool
impl StructuralPartialEq for SshTunnelConfig
Auto Trait Implementations
impl RefUnwindSafe for SshTunnelConfig
impl Send for SshTunnelConfig
impl Sync for SshTunnelConfig
impl Unpin for SshTunnelConfig
impl UnwindSafe for SshTunnelConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> FutureExt for T
impl<T> FutureExt for T
sourcefn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
sourcefn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
sourcefn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request
sourceimpl<P, R> ProtoType<R> for Pwhere
R: RustType<P>,
impl<P, R> ProtoType<R> for Pwhere
R: RustType<P>,
sourcefn into_rust(self) -> Result<R, TryFromProtoError>
fn into_rust(self) -> Result<R, TryFromProtoError>
See
RustType::from_proto
.sourcefn from_rust(rust: &R) -> P
fn from_rust(rust: &R) -> P
See
RustType::into_proto
.