pub fn from_conf_conn<C, E>(conf: crate::Config, conn: C) -> Self
    where
        C: aws_smithy_client::bounds::SmithyConnector<Error = E> + Send + 'static,
        E: Into<aws_smithy_http::result::ConnectorError>,
    {
        let retry_config = conf.retry_config.as_ref().cloned().unwrap_or_default();
        let timeout_config = conf.timeout_config.as_ref().cloned().unwrap_or_default();
        let sleep_impl = conf.sleep_impl.clone();
        let mut builder = aws_smithy_client::Builder::new()
            .connector(aws_smithy_client::erase::DynConnector::new(conn))
            .middleware(aws_smithy_client::erase::DynMiddleware::new(
                crate::middleware::DefaultMiddleware::new(),
            ));
        builder.set_retry_config(retry_config.into());
        builder.set_timeout_config(timeout_config);
        if let Some(sleep_impl) = sleep_impl {
            builder.set_sleep_impl(Some(sleep_impl));
        }
        let client = builder.build();
        Self {
            handle: std::sync::Arc::new(Handle { client, conf }),
        }
    }
/// Creates a client with the given service config and connector override.
Creates a client with the given service config and connector override.
Creates a client with the given service config and connector override .
pub fn from_conf_conn<C, E>(conf: crate::Config, conn: C) -> Self
    where
        C: aws_smithy_client::bounds::SmithyConnector<Error = E> + Send + 'static,
        E: Into<aws_smithy_http::result::ConnectorError>,
    {
        let retry_config = conf.retry_config.as_ref().cloned().unwrap_or_default();
        let timeout_config = conf.timeout_config.as_ref().cloned().unwrap_or_default();
        let sleep_impl = conf.sleep_impl.clone();
        let mut builder = aws_smithy_client::Builder::new()
            .connector(aws_smithy_client::erase::DynConnector::new(conn))
            .middleware(aws_smithy_client::erase::DynMiddleware::new(
                crate::middleware::DefaultMiddleware::new(),
            ));
        builder.set_retry_config(retry_config.into());
        builder.set_timeout_config(timeout_config);
        if let Some(sleep_impl) = sleep_impl {
            builder.set_sleep_impl(Some(sleep_impl));
        }
        let client = builder.build();
        Self {
            handle: std::sync::Arc::new(Handle { client, conf }),
        }
    }
pub fn from_conf_conn < C , E > ( conf : crate :: Config , conn : C ) -> Self where C : aws_smithy_client :: bounds :: SmithyConnector < Error = E > + Send + ' static , E : Into < aws_smithy_http :: result :: ConnectorError > , { let retry_config = conf . retry_config . as_ref ( ) . cloned ( ) . unwrap_or_default ( ) ; let timeout_config = conf . timeout_config . as_ref ( ) . cloned ( ) . unwrap_or_default ( ) ; let sleep_impl = conf . sleep_impl . clone ( ) ; let mut builder = aws_smithy_client :: Builder :: new ( ) . connector ( aws_smithy_client :: erase :: DynConnector :: new ( conn ) ) . middleware ( aws_smithy_client :: erase :: DynMiddleware :: new ( crate :: middleware :: DefaultMiddleware :: new ( ) , ) ) ; builder . set_retry_config ( retry_config . into ( ) ) ; builder . set_timeout_config ( timeout_config ) ; if let Some ( sleep_impl ) = sleep_impl { builder . set_sleep_impl ( Some ( sleep_impl ) ) ; } let client = builder . build ( ) ; Self { handle : std :: sync :: Arc :: new ( Handle { client , conf } ) , } }
Creates a client with the given service config and connector override.
Creates a client with the given service config and connector override .
conf
crate::Config
conn
C
conf
crate::Config
conn
C