Skip to main content

ClientOptionsBuilder

Struct ClientOptionsBuilder 

Source
pub struct ClientOptionsBuilder<TypedBuilderFields = ((), (), (), (), (), (), (), (), (), (), (), (), (), (), ())> { /* private fields */ }
Expand description

Builder for ClientOptions instances.

See ClientOptions::builder() for more info.

Implementations§

Source§

impl<__default_headers, __proxy_url, __allow_http, __allow_insecure, __timeout, __connect_timeout, __pool_idle_timeout, __pool_max_idle_per_host, __http2_keep_alive_interval, __http2_keep_alive_timeout, __http2_keep_alive_while_idle, __http1_only, __http2_only, __retry_config> ClientOptionsBuilder<((), __default_headers, __proxy_url, __allow_http, __allow_insecure, __timeout, __connect_timeout, __pool_idle_timeout, __pool_max_idle_per_host, __http2_keep_alive_interval, __http2_keep_alive_timeout, __http2_keep_alive_while_idle, __http1_only, __http2_only, __retry_config)>

Source

pub fn user_agent( self, user_agent: HeaderValue, ) -> ClientOptionsBuilder<((Option<HeaderValue>,), __default_headers, __proxy_url, __allow_http, __allow_insecure, __timeout, __connect_timeout, __pool_idle_timeout, __pool_max_idle_per_host, __http2_keep_alive_interval, __http2_keep_alive_timeout, __http2_keep_alive_while_idle, __http1_only, __http2_only, __retry_config)>

User-Agent header to use for requests

Source§

impl<__user_agent, __proxy_url, __allow_http, __allow_insecure, __timeout, __connect_timeout, __pool_idle_timeout, __pool_max_idle_per_host, __http2_keep_alive_interval, __http2_keep_alive_timeout, __http2_keep_alive_while_idle, __http1_only, __http2_only, __retry_config> ClientOptionsBuilder<(__user_agent, (), __proxy_url, __allow_http, __allow_insecure, __timeout, __connect_timeout, __pool_idle_timeout, __pool_max_idle_per_host, __http2_keep_alive_interval, __http2_keep_alive_timeout, __http2_keep_alive_while_idle, __http1_only, __http2_only, __retry_config)>

Source

pub fn default_headers( self, default_headers: HeaderMap, ) -> ClientOptionsBuilder<(__user_agent, (Option<HeaderMap>,), __proxy_url, __allow_http, __allow_insecure, __timeout, __connect_timeout, __pool_idle_timeout, __pool_max_idle_per_host, __http2_keep_alive_interval, __http2_keep_alive_timeout, __http2_keep_alive_while_idle, __http1_only, __http2_only, __retry_config)>

Default headers for every request

Source§

impl<__user_agent, __default_headers, __allow_http, __allow_insecure, __timeout, __connect_timeout, __pool_idle_timeout, __pool_max_idle_per_host, __http2_keep_alive_interval, __http2_keep_alive_timeout, __http2_keep_alive_while_idle, __http1_only, __http2_only, __retry_config> ClientOptionsBuilder<(__user_agent, __default_headers, (), __allow_http, __allow_insecure, __timeout, __connect_timeout, __pool_idle_timeout, __pool_max_idle_per_host, __http2_keep_alive_interval, __http2_keep_alive_timeout, __http2_keep_alive_while_idle, __http1_only, __http2_only, __retry_config)>

Source

pub fn proxy_url( self, proxy_url: impl Into<String>, ) -> ClientOptionsBuilder<(__user_agent, __default_headers, (Option<String>,), __allow_http, __allow_insecure, __timeout, __connect_timeout, __pool_idle_timeout, __pool_max_idle_per_host, __http2_keep_alive_interval, __http2_keep_alive_timeout, __http2_keep_alive_while_idle, __http1_only, __http2_only, __retry_config)>

HTTP proxy URL

Source§

impl<__user_agent, __default_headers, __proxy_url, __allow_insecure, __timeout, __connect_timeout, __pool_idle_timeout, __pool_max_idle_per_host, __http2_keep_alive_interval, __http2_keep_alive_timeout, __http2_keep_alive_while_idle, __http1_only, __http2_only, __retry_config> ClientOptionsBuilder<(__user_agent, __default_headers, __proxy_url, (), __allow_insecure, __timeout, __connect_timeout, __pool_idle_timeout, __pool_max_idle_per_host, __http2_keep_alive_interval, __http2_keep_alive_timeout, __http2_keep_alive_while_idle, __http1_only, __http2_only, __retry_config)>

Source

pub fn allow_http( self, allow_http: bool, ) -> ClientOptionsBuilder<(__user_agent, __default_headers, __proxy_url, (bool,), __allow_insecure, __timeout, __connect_timeout, __pool_idle_timeout, __pool_max_idle_per_host, __http2_keep_alive_interval, __http2_keep_alive_timeout, __http2_keep_alive_while_idle, __http1_only, __http2_only, __retry_config)>

Allow HTTP connections (default: false)

Source§

impl<__user_agent, __default_headers, __proxy_url, __allow_http, __timeout, __connect_timeout, __pool_idle_timeout, __pool_max_idle_per_host, __http2_keep_alive_interval, __http2_keep_alive_timeout, __http2_keep_alive_while_idle, __http1_only, __http2_only, __retry_config> ClientOptionsBuilder<(__user_agent, __default_headers, __proxy_url, __allow_http, (), __timeout, __connect_timeout, __pool_idle_timeout, __pool_max_idle_per_host, __http2_keep_alive_interval, __http2_keep_alive_timeout, __http2_keep_alive_while_idle, __http1_only, __http2_only, __retry_config)>

Source

pub fn allow_insecure( self, allow_insecure: bool, ) -> ClientOptionsBuilder<(__user_agent, __default_headers, __proxy_url, __allow_http, (bool,), __timeout, __connect_timeout, __pool_idle_timeout, __pool_max_idle_per_host, __http2_keep_alive_interval, __http2_keep_alive_timeout, __http2_keep_alive_while_idle, __http1_only, __http2_only, __retry_config)>

Allow invalid SSL certificates (default: false)

Source§

impl<__user_agent, __default_headers, __proxy_url, __allow_http, __allow_insecure, __connect_timeout, __pool_idle_timeout, __pool_max_idle_per_host, __http2_keep_alive_interval, __http2_keep_alive_timeout, __http2_keep_alive_while_idle, __http1_only, __http2_only, __retry_config> ClientOptionsBuilder<(__user_agent, __default_headers, __proxy_url, __allow_http, __allow_insecure, (), __connect_timeout, __pool_idle_timeout, __pool_max_idle_per_host, __http2_keep_alive_interval, __http2_keep_alive_timeout, __http2_keep_alive_while_idle, __http1_only, __http2_only, __retry_config)>

Source

pub fn timeout( self, timeout: Duration, ) -> ClientOptionsBuilder<(__user_agent, __default_headers, __proxy_url, __allow_http, __allow_insecure, (Option<Duration>,), __connect_timeout, __pool_idle_timeout, __pool_max_idle_per_host, __http2_keep_alive_interval, __http2_keep_alive_timeout, __http2_keep_alive_while_idle, __http1_only, __http2_only, __retry_config)>

Request timeout

Source§

impl<__user_agent, __default_headers, __proxy_url, __allow_http, __allow_insecure, __timeout, __pool_idle_timeout, __pool_max_idle_per_host, __http2_keep_alive_interval, __http2_keep_alive_timeout, __http2_keep_alive_while_idle, __http1_only, __http2_only, __retry_config> ClientOptionsBuilder<(__user_agent, __default_headers, __proxy_url, __allow_http, __allow_insecure, __timeout, (), __pool_idle_timeout, __pool_max_idle_per_host, __http2_keep_alive_interval, __http2_keep_alive_timeout, __http2_keep_alive_while_idle, __http1_only, __http2_only, __retry_config)>

Source

pub fn connect_timeout( self, connect_timeout: Duration, ) -> ClientOptionsBuilder<(__user_agent, __default_headers, __proxy_url, __allow_http, __allow_insecure, __timeout, (Option<Duration>,), __pool_idle_timeout, __pool_max_idle_per_host, __http2_keep_alive_interval, __http2_keep_alive_timeout, __http2_keep_alive_while_idle, __http1_only, __http2_only, __retry_config)>

Connect timeout

Source§

impl<__user_agent, __default_headers, __proxy_url, __allow_http, __allow_insecure, __timeout, __connect_timeout, __pool_max_idle_per_host, __http2_keep_alive_interval, __http2_keep_alive_timeout, __http2_keep_alive_while_idle, __http1_only, __http2_only, __retry_config> ClientOptionsBuilder<(__user_agent, __default_headers, __proxy_url, __allow_http, __allow_insecure, __timeout, __connect_timeout, (), __pool_max_idle_per_host, __http2_keep_alive_interval, __http2_keep_alive_timeout, __http2_keep_alive_while_idle, __http1_only, __http2_only, __retry_config)>

Source

pub fn pool_idle_timeout( self, pool_idle_timeout: Duration, ) -> ClientOptionsBuilder<(__user_agent, __default_headers, __proxy_url, __allow_http, __allow_insecure, __timeout, __connect_timeout, (Option<Duration>,), __pool_max_idle_per_host, __http2_keep_alive_interval, __http2_keep_alive_timeout, __http2_keep_alive_while_idle, __http1_only, __http2_only, __retry_config)>

Pool idle timeout

Source§

impl<__user_agent, __default_headers, __proxy_url, __allow_http, __allow_insecure, __timeout, __connect_timeout, __pool_idle_timeout, __http2_keep_alive_interval, __http2_keep_alive_timeout, __http2_keep_alive_while_idle, __http1_only, __http2_only, __retry_config> ClientOptionsBuilder<(__user_agent, __default_headers, __proxy_url, __allow_http, __allow_insecure, __timeout, __connect_timeout, __pool_idle_timeout, (), __http2_keep_alive_interval, __http2_keep_alive_timeout, __http2_keep_alive_while_idle, __http1_only, __http2_only, __retry_config)>

Source

pub fn pool_max_idle_per_host( self, pool_max_idle_per_host: usize, ) -> ClientOptionsBuilder<(__user_agent, __default_headers, __proxy_url, __allow_http, __allow_insecure, __timeout, __connect_timeout, __pool_idle_timeout, (Option<usize>,), __http2_keep_alive_interval, __http2_keep_alive_timeout, __http2_keep_alive_while_idle, __http1_only, __http2_only, __retry_config)>

Maximum number of idle connections per host

Source§

impl<__user_agent, __default_headers, __proxy_url, __allow_http, __allow_insecure, __timeout, __connect_timeout, __pool_idle_timeout, __pool_max_idle_per_host, __http2_keep_alive_timeout, __http2_keep_alive_while_idle, __http1_only, __http2_only, __retry_config> ClientOptionsBuilder<(__user_agent, __default_headers, __proxy_url, __allow_http, __allow_insecure, __timeout, __connect_timeout, __pool_idle_timeout, __pool_max_idle_per_host, (), __http2_keep_alive_timeout, __http2_keep_alive_while_idle, __http1_only, __http2_only, __retry_config)>

Source

pub fn http2_keep_alive_interval( self, http2_keep_alive_interval: Duration, ) -> ClientOptionsBuilder<(__user_agent, __default_headers, __proxy_url, __allow_http, __allow_insecure, __timeout, __connect_timeout, __pool_idle_timeout, __pool_max_idle_per_host, (Option<Duration>,), __http2_keep_alive_timeout, __http2_keep_alive_while_idle, __http1_only, __http2_only, __retry_config)>

HTTP2 keep alive interval

Source§

impl<__user_agent, __default_headers, __proxy_url, __allow_http, __allow_insecure, __timeout, __connect_timeout, __pool_idle_timeout, __pool_max_idle_per_host, __http2_keep_alive_interval, __http2_keep_alive_while_idle, __http1_only, __http2_only, __retry_config> ClientOptionsBuilder<(__user_agent, __default_headers, __proxy_url, __allow_http, __allow_insecure, __timeout, __connect_timeout, __pool_idle_timeout, __pool_max_idle_per_host, __http2_keep_alive_interval, (), __http2_keep_alive_while_idle, __http1_only, __http2_only, __retry_config)>

Source

pub fn http2_keep_alive_timeout( self, http2_keep_alive_timeout: Duration, ) -> ClientOptionsBuilder<(__user_agent, __default_headers, __proxy_url, __allow_http, __allow_insecure, __timeout, __connect_timeout, __pool_idle_timeout, __pool_max_idle_per_host, __http2_keep_alive_interval, (Option<Duration>,), __http2_keep_alive_while_idle, __http1_only, __http2_only, __retry_config)>

HTTP2 keep alive timeout

Source§

impl<__user_agent, __default_headers, __proxy_url, __allow_http, __allow_insecure, __timeout, __connect_timeout, __pool_idle_timeout, __pool_max_idle_per_host, __http2_keep_alive_interval, __http2_keep_alive_timeout, __http1_only, __http2_only, __retry_config> ClientOptionsBuilder<(__user_agent, __default_headers, __proxy_url, __allow_http, __allow_insecure, __timeout, __connect_timeout, __pool_idle_timeout, __pool_max_idle_per_host, __http2_keep_alive_interval, __http2_keep_alive_timeout, (), __http1_only, __http2_only, __retry_config)>

Source

pub fn http2_keep_alive_while_idle( self, http2_keep_alive_while_idle: bool, ) -> ClientOptionsBuilder<(__user_agent, __default_headers, __proxy_url, __allow_http, __allow_insecure, __timeout, __connect_timeout, __pool_idle_timeout, __pool_max_idle_per_host, __http2_keep_alive_interval, __http2_keep_alive_timeout, (bool,), __http1_only, __http2_only, __retry_config)>

Enable HTTP2 keep alive while idle

Source§

impl<__user_agent, __default_headers, __proxy_url, __allow_http, __allow_insecure, __timeout, __connect_timeout, __pool_idle_timeout, __pool_max_idle_per_host, __http2_keep_alive_interval, __http2_keep_alive_timeout, __http2_keep_alive_while_idle, __http2_only, __retry_config> ClientOptionsBuilder<(__user_agent, __default_headers, __proxy_url, __allow_http, __allow_insecure, __timeout, __connect_timeout, __pool_idle_timeout, __pool_max_idle_per_host, __http2_keep_alive_interval, __http2_keep_alive_timeout, __http2_keep_alive_while_idle, (), __http2_only, __retry_config)>

Source

pub fn http1_only( self, http1_only: bool, ) -> ClientOptionsBuilder<(__user_agent, __default_headers, __proxy_url, __allow_http, __allow_insecure, __timeout, __connect_timeout, __pool_idle_timeout, __pool_max_idle_per_host, __http2_keep_alive_interval, __http2_keep_alive_timeout, __http2_keep_alive_while_idle, (bool,), __http2_only, __retry_config)>

Only use HTTP1

Source§

impl<__user_agent, __default_headers, __proxy_url, __allow_http, __allow_insecure, __timeout, __connect_timeout, __pool_idle_timeout, __pool_max_idle_per_host, __http2_keep_alive_interval, __http2_keep_alive_timeout, __http2_keep_alive_while_idle, __http1_only, __retry_config> ClientOptionsBuilder<(__user_agent, __default_headers, __proxy_url, __allow_http, __allow_insecure, __timeout, __connect_timeout, __pool_idle_timeout, __pool_max_idle_per_host, __http2_keep_alive_interval, __http2_keep_alive_timeout, __http2_keep_alive_while_idle, __http1_only, (), __retry_config)>

Source

pub fn http2_only( self, http2_only: bool, ) -> ClientOptionsBuilder<(__user_agent, __default_headers, __proxy_url, __allow_http, __allow_insecure, __timeout, __connect_timeout, __pool_idle_timeout, __pool_max_idle_per_host, __http2_keep_alive_interval, __http2_keep_alive_timeout, __http2_keep_alive_while_idle, __http1_only, (bool,), __retry_config)>

Only use HTTP2

Source§

impl<__user_agent, __default_headers, __proxy_url, __allow_http, __allow_insecure, __timeout, __connect_timeout, __pool_idle_timeout, __pool_max_idle_per_host, __http2_keep_alive_interval, __http2_keep_alive_timeout, __http2_keep_alive_while_idle, __http1_only, __http2_only> ClientOptionsBuilder<(__user_agent, __default_headers, __proxy_url, __allow_http, __allow_insecure, __timeout, __connect_timeout, __pool_idle_timeout, __pool_max_idle_per_host, __http2_keep_alive_interval, __http2_keep_alive_timeout, __http2_keep_alive_while_idle, __http1_only, __http2_only, ())>

Source

pub fn retry_config( self, retry_config: RetryConfig, ) -> ClientOptionsBuilder<(__user_agent, __default_headers, __proxy_url, __allow_http, __allow_insecure, __timeout, __connect_timeout, __pool_idle_timeout, __pool_max_idle_per_host, __http2_keep_alive_interval, __http2_keep_alive_timeout, __http2_keep_alive_while_idle, __http1_only, __http2_only, (Option<RetryConfig>,))>

Retry configuration

Source§

impl<__user_agent, __default_headers, __proxy_url, __allow_http, __allow_insecure, __timeout, __connect_timeout, __pool_idle_timeout, __pool_max_idle_per_host, __http2_keep_alive_interval, __http2_keep_alive_timeout, __http2_keep_alive_while_idle, __http1_only, __http2_only, __retry_config> ClientOptionsBuilder<(__user_agent, __default_headers, __proxy_url, __allow_http, __allow_insecure, __timeout, __connect_timeout, __pool_idle_timeout, __pool_max_idle_per_host, __http2_keep_alive_interval, __http2_keep_alive_timeout, __http2_keep_alive_while_idle, __http1_only, __http2_only, __retry_config)>
where ClientOptions: for<'__typed_builder_lifetime_for_default> NextFieldDefault<(__user_agent,), Output = Option<HeaderValue>> + for<'__typed_builder_lifetime_for_default> NextFieldDefault<(&'__typed_builder_lifetime_for_default Option<HeaderValue>, __default_headers), Output = Option<HeaderMap>> + for<'__typed_builder_lifetime_for_default> NextFieldDefault<(&'__typed_builder_lifetime_for_default Option<HeaderValue>, &'__typed_builder_lifetime_for_default Option<HeaderMap>, __proxy_url), Output = Option<String>> + for<'__typed_builder_lifetime_for_default> NextFieldDefault<(&'__typed_builder_lifetime_for_default Option<HeaderValue>, &'__typed_builder_lifetime_for_default Option<HeaderMap>, &'__typed_builder_lifetime_for_default Option<String>, __allow_http), Output = bool> + for<'__typed_builder_lifetime_for_default> NextFieldDefault<(&'__typed_builder_lifetime_for_default Option<HeaderValue>, &'__typed_builder_lifetime_for_default Option<HeaderMap>, &'__typed_builder_lifetime_for_default Option<String>, &'__typed_builder_lifetime_for_default bool, __allow_insecure), Output = bool> + for<'__typed_builder_lifetime_for_default> NextFieldDefault<(&'__typed_builder_lifetime_for_default Option<HeaderValue>, &'__typed_builder_lifetime_for_default Option<HeaderMap>, &'__typed_builder_lifetime_for_default Option<String>, &'__typed_builder_lifetime_for_default bool, &'__typed_builder_lifetime_for_default bool, __timeout), Output = Option<Duration>> + for<'__typed_builder_lifetime_for_default> NextFieldDefault<(&'__typed_builder_lifetime_for_default Option<HeaderValue>, &'__typed_builder_lifetime_for_default Option<HeaderMap>, &'__typed_builder_lifetime_for_default Option<String>, &'__typed_builder_lifetime_for_default bool, &'__typed_builder_lifetime_for_default bool, &'__typed_builder_lifetime_for_default Option<Duration>, __connect_timeout), Output = Option<Duration>> + for<'__typed_builder_lifetime_for_default> NextFieldDefault<(&'__typed_builder_lifetime_for_default Option<HeaderValue>, &'__typed_builder_lifetime_for_default Option<HeaderMap>, &'__typed_builder_lifetime_for_default Option<String>, &'__typed_builder_lifetime_for_default bool, &'__typed_builder_lifetime_for_default bool, &'__typed_builder_lifetime_for_default Option<Duration>, &'__typed_builder_lifetime_for_default Option<Duration>, __pool_idle_timeout), Output = Option<Duration>> + for<'__typed_builder_lifetime_for_default> NextFieldDefault<(&'__typed_builder_lifetime_for_default Option<HeaderValue>, &'__typed_builder_lifetime_for_default Option<HeaderMap>, &'__typed_builder_lifetime_for_default Option<String>, &'__typed_builder_lifetime_for_default bool, &'__typed_builder_lifetime_for_default bool, &'__typed_builder_lifetime_for_default Option<Duration>, &'__typed_builder_lifetime_for_default Option<Duration>, &'__typed_builder_lifetime_for_default Option<Duration>, __pool_max_idle_per_host), Output = Option<usize>> + for<'__typed_builder_lifetime_for_default> NextFieldDefault<(&'__typed_builder_lifetime_for_default Option<HeaderValue>, &'__typed_builder_lifetime_for_default Option<HeaderMap>, &'__typed_builder_lifetime_for_default Option<String>, &'__typed_builder_lifetime_for_default bool, &'__typed_builder_lifetime_for_default bool, &'__typed_builder_lifetime_for_default Option<Duration>, &'__typed_builder_lifetime_for_default Option<Duration>, &'__typed_builder_lifetime_for_default Option<Duration>, &'__typed_builder_lifetime_for_default Option<usize>, __http2_keep_alive_interval), Output = Option<Duration>> + for<'__typed_builder_lifetime_for_default> NextFieldDefault<(&'__typed_builder_lifetime_for_default Option<HeaderValue>, &'__typed_builder_lifetime_for_default Option<HeaderMap>, &'__typed_builder_lifetime_for_default Option<String>, &'__typed_builder_lifetime_for_default bool, &'__typed_builder_lifetime_for_default bool, &'__typed_builder_lifetime_for_default Option<Duration>, &'__typed_builder_lifetime_for_default Option<Duration>, &'__typed_builder_lifetime_for_default Option<Duration>, &'__typed_builder_lifetime_for_default Option<usize>, &'__typed_builder_lifetime_for_default Option<Duration>, __http2_keep_alive_timeout), Output = Option<Duration>> + for<'__typed_builder_lifetime_for_default> NextFieldDefault<(&'__typed_builder_lifetime_for_default Option<HeaderValue>, &'__typed_builder_lifetime_for_default Option<HeaderMap>, &'__typed_builder_lifetime_for_default Option<String>, &'__typed_builder_lifetime_for_default bool, &'__typed_builder_lifetime_for_default bool, &'__typed_builder_lifetime_for_default Option<Duration>, &'__typed_builder_lifetime_for_default Option<Duration>, &'__typed_builder_lifetime_for_default Option<Duration>, &'__typed_builder_lifetime_for_default Option<usize>, &'__typed_builder_lifetime_for_default Option<Duration>, &'__typed_builder_lifetime_for_default Option<Duration>, __http2_keep_alive_while_idle), Output = bool> + for<'__typed_builder_lifetime_for_default> NextFieldDefault<(&'__typed_builder_lifetime_for_default Option<HeaderValue>, &'__typed_builder_lifetime_for_default Option<HeaderMap>, &'__typed_builder_lifetime_for_default Option<String>, &'__typed_builder_lifetime_for_default bool, &'__typed_builder_lifetime_for_default bool, &'__typed_builder_lifetime_for_default Option<Duration>, &'__typed_builder_lifetime_for_default Option<Duration>, &'__typed_builder_lifetime_for_default Option<Duration>, &'__typed_builder_lifetime_for_default Option<usize>, &'__typed_builder_lifetime_for_default Option<Duration>, &'__typed_builder_lifetime_for_default Option<Duration>, &'__typed_builder_lifetime_for_default bool, __http1_only), Output = bool> + for<'__typed_builder_lifetime_for_default> NextFieldDefault<(&'__typed_builder_lifetime_for_default Option<HeaderValue>, &'__typed_builder_lifetime_for_default Option<HeaderMap>, &'__typed_builder_lifetime_for_default Option<String>, &'__typed_builder_lifetime_for_default bool, &'__typed_builder_lifetime_for_default bool, &'__typed_builder_lifetime_for_default Option<Duration>, &'__typed_builder_lifetime_for_default Option<Duration>, &'__typed_builder_lifetime_for_default Option<Duration>, &'__typed_builder_lifetime_for_default Option<usize>, &'__typed_builder_lifetime_for_default Option<Duration>, &'__typed_builder_lifetime_for_default Option<Duration>, &'__typed_builder_lifetime_for_default bool, &'__typed_builder_lifetime_for_default bool, __http2_only), Output = bool> + for<'__typed_builder_lifetime_for_default> NextFieldDefault<(&'__typed_builder_lifetime_for_default Option<HeaderValue>, &'__typed_builder_lifetime_for_default Option<HeaderMap>, &'__typed_builder_lifetime_for_default Option<String>, &'__typed_builder_lifetime_for_default bool, &'__typed_builder_lifetime_for_default bool, &'__typed_builder_lifetime_for_default Option<Duration>, &'__typed_builder_lifetime_for_default Option<Duration>, &'__typed_builder_lifetime_for_default Option<Duration>, &'__typed_builder_lifetime_for_default Option<usize>, &'__typed_builder_lifetime_for_default Option<Duration>, &'__typed_builder_lifetime_for_default Option<Duration>, &'__typed_builder_lifetime_for_default bool, &'__typed_builder_lifetime_for_default bool, &'__typed_builder_lifetime_for_default bool, __retry_config), Output = Option<RetryConfig>>,

Source

pub fn build(self) -> ClientOptions

Finalise the builder and create its ClientOptions instance

Trait Implementations§

Source§

impl<TypedBuilderFields> Clone for ClientOptionsBuilder<TypedBuilderFields>
where TypedBuilderFields: Clone,

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

Auto Trait Implementations§

§

impl<TypedBuilderFields> Freeze for ClientOptionsBuilder<TypedBuilderFields>
where TypedBuilderFields: Freeze,

§

impl<TypedBuilderFields> RefUnwindSafe for ClientOptionsBuilder<TypedBuilderFields>
where TypedBuilderFields: RefUnwindSafe,

§

impl<TypedBuilderFields> Send for ClientOptionsBuilder<TypedBuilderFields>
where TypedBuilderFields: Send,

§

impl<TypedBuilderFields> Sync for ClientOptionsBuilder<TypedBuilderFields>
where TypedBuilderFields: Sync,

§

impl<TypedBuilderFields> Unpin for ClientOptionsBuilder<TypedBuilderFields>
where TypedBuilderFields: Unpin,

§

impl<TypedBuilderFields> UnsafeUnpin for ClientOptionsBuilder<TypedBuilderFields>
where TypedBuilderFields: UnsafeUnpin,

§

impl<TypedBuilderFields> UnwindSafe for ClientOptionsBuilder<TypedBuilderFields>
where TypedBuilderFields: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> AsAny for T
where T: Any + Send + Sync,

Source§

fn any_ref(&self) -> &(dyn Any + Send + Sync + 'static)

Obtains a dyn Any reference to the object: Read more
Source§

fn as_any(self: Arc<T>) -> Arc<dyn Any + Send + Sync>

Obtains an Arc<dyn Any> reference to the object: Read more
Source§

fn into_any(self: Box<T>) -> Box<dyn Any + Send + Sync>

Converts the object to Box<dyn Any>: Read more
Source§

fn type_name(&self) -> &'static str

Convenient wrapper for std::any::type_name, since Any does not provide it and Any::type_id is useless as a debugging aid (its Debug is just a mess of hex digits).
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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 more
Source§

impl<Unshared, Shared> IntoShared<Shared> for Unshared
where Shared: FromUnshared<Unshared>,

Source§

fn into_shared(self) -> Shared

Creates a shared type from an unshared type.
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<KernelType, ArrowType> TryIntoArrow<ArrowType> for KernelType
where ArrowType: TryFromKernel<KernelType>,

Source§

fn try_into_arrow(self) -> Result<ArrowType, ArrowError>

Source§

impl<KernelType, ArrowType> TryIntoKernel<KernelType> for ArrowType
where KernelType: TryFromArrow<ArrowType>,

Source§

fn try_into_kernel(self) -> Result<KernelType, ArrowError>

Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> Allocation for T
where T: RefUnwindSafe + Send + Sync,