pub struct SecureConnectOptions {
pub http_port: u16,
pub tls_mode: TlsMode,
pub server_version: Option<Version>,
}Expand description
Connection options for the typed TLS transport surface.
Fields§
§http_port: u16Port of the TypeDB HTTP API used for the connect-time version probe.
tls_mode: TlsModeTLS policy shared by the HTTP probe and every gRPC driver attempt.
server_version: Option<Version>Exact server version supplied by the caller.
When set, the HTTP probe is skipped, but tls_mode still applies to
the selected gRPC driver.
Implementations§
Source§impl SecureConnectOptions
impl SecureConnectOptions
Sourcepub fn validate_transport(&self) -> SecureResult<()>
pub fn validate_transport(&self) -> SecureResult<()>
Validate and lower this transport policy without constructing a host.
This runs the exact shared custom-root and compiled-driver-band validation used by every secure connect/lifecycle entry point, then discards the provider options. It performs no HTTP request, gRPC host construction, credential use, or database operation, so orchestration layers can fail malformed trust material before resolving secrets.
Trait Implementations§
Source§impl Clone for SecureConnectOptions
impl Clone for SecureConnectOptions
Source§fn clone(&self) -> SecureConnectOptions
fn clone(&self) -> SecureConnectOptions
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 SecureConnectOptions
impl Debug for SecureConnectOptions
Source§impl Default for SecureConnectOptions
impl Default for SecureConnectOptions
impl Eq for SecureConnectOptions
Source§impl From<ConnectOptions> for SecureConnectOptions
impl From<ConnectOptions> for SecureConnectOptions
Source§fn from(value: ConnectOptions) -> Self
fn from(value: ConnectOptions) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SecureConnectOptions
impl PartialEq for SecureConnectOptions
impl StructuralPartialEq for SecureConnectOptions
Auto Trait Implementations§
impl Freeze for SecureConnectOptions
impl RefUnwindSafe for SecureConnectOptions
impl Send for SecureConnectOptions
impl Sync for SecureConnectOptions
impl Unpin for SecureConnectOptions
impl UnsafeUnpin for SecureConnectOptions
impl UnwindSafe for SecureConnectOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§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