Enum mz_postgres_util::TunnelConfig
source · pub enum TunnelConfig {
Direct,
Ssh(SshTunnelConfig),
AwsPrivatelink {
connection_id: GlobalId,
},
}
Expand description
Configures an optional tunnel for use when connecting to a PostgreSQL database.
Variants§
Direct
Establish a direct TCP connection to the database host.
Ssh(SshTunnelConfig)
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.
AwsPrivatelink
Establish a TCP connection to the database via an AWS PrivateLink service.
Trait Implementations§
source§impl Clone for TunnelConfig
impl Clone for TunnelConfig
source§fn clone(&self) -> TunnelConfig
fn clone(&self) -> TunnelConfig
Returns a copy of the value. Read more
1.0.0 · 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 TunnelConfig
impl Debug for TunnelConfig
source§impl PartialEq<TunnelConfig> for TunnelConfig
impl PartialEq<TunnelConfig> for TunnelConfig
source§fn eq(&self, other: &TunnelConfig) -> bool
fn eq(&self, other: &TunnelConfig) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TunnelConfig
Auto Trait Implementations§
impl RefUnwindSafe for TunnelConfig
impl Send for TunnelConfig
impl Sync for TunnelConfig
impl Unpin for TunnelConfig
impl UnwindSafe for TunnelConfig
Blanket Implementations§
source§impl<T> FutureExt for T
impl<T> FutureExt for T
source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request
source§impl<P, R> ProtoType<R> for Pwhere
R: RustType<P>,
impl<P, R> ProtoType<R> for Pwhere
R: RustType<P>,
source§fn into_rust(self) -> Result<R, TryFromProtoError>
fn into_rust(self) -> Result<R, TryFromProtoError>
See
RustType::from_proto
.source§fn from_rust(rust: &R) -> P
fn from_rust(rust: &R) -> P
See
RustType::into_proto
.