pub trait SqlConnectService:
Debug
+ Send
+ Sync {
// Provided methods
fn get_connect_settings(
&self,
_req: GetConnectSettingsRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<ConnectSettings>>> + Send { ... }
fn generate_ephemeral_cert(
&self,
_req: GenerateEphemeralCertRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<GenerateEphemeralCertResponse>>> + Send { ... }
}
Expand description
Defines the trait used to implement super::client::SqlConnectService.
Application developers may need to implement this trait to mock
client::SqlConnectService
. In other use-cases, application developers only
use client::SqlConnectService
and need not be concerned with this trait or
its implementations.
Services gain new RPCs routinely. Consequently, this trait gains new methods too. To avoid breaking applications the trait provides a default implementation of each method. Most of these implementations just return an error.
Provided Methods§
Sourcefn get_connect_settings(
&self,
_req: GetConnectSettingsRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<ConnectSettings>>> + Send
fn get_connect_settings( &self, _req: GetConnectSettingsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ConnectSettings>>> + Send
Sourcefn generate_ephemeral_cert(
&self,
_req: GenerateEphemeralCertRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<GenerateEphemeralCertResponse>>> + Send
fn generate_ephemeral_cert( &self, _req: GenerateEphemeralCertRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<GenerateEphemeralCertResponse>>> + Send
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.