pub struct HyperConnectorBuilder<Crypto = CryptoUnset> { /* private fields */ }
Expand description
Builder for HyperConnector
.
Implementations§
source§impl HyperConnectorBuilder<CryptoProviderSelected>
impl HyperConnectorBuilder<CryptoProviderSelected>
pub fn build_from_resolver<R: ResolveDns + Clone + 'static>( self, resolver: R ) -> HyperConnector
Available on crate features
crypto-aws-lc
or crypto-ring
only.source§impl<Any> HyperConnectorBuilder<Any>
impl<Any> HyperConnectorBuilder<Any>
sourcepub fn sleep_impl(self, sleep_impl: impl AsyncSleep + 'static) -> Self
pub fn sleep_impl(self, sleep_impl: impl AsyncSleep + 'static) -> Self
Set the async sleep implementation used for timeouts
Calling this is only necessary for testing or to use something other than
default_async_sleep
.
sourcepub fn set_sleep_impl(
&mut self,
sleep_impl: Option<SharedAsyncSleep>
) -> &mut Self
pub fn set_sleep_impl( &mut self, sleep_impl: Option<SharedAsyncSleep> ) -> &mut Self
Set the async sleep implementation used for timeouts
Calling this is only necessary for testing or to use something other than
default_async_sleep
.
sourcepub fn connector_settings(
self,
connector_settings: HttpConnectorSettings
) -> Self
pub fn connector_settings( self, connector_settings: HttpConnectorSettings ) -> Self
Configure the HTTP settings for the HyperAdapter
sourcepub fn set_connector_settings(
&mut self,
connector_settings: Option<HttpConnectorSettings>
) -> &mut Self
pub fn set_connector_settings( &mut self, connector_settings: Option<HttpConnectorSettings> ) -> &mut Self
Configure the HTTP settings for the HyperAdapter
Trait Implementations§
source§impl<Crypto: Debug> Debug for HyperConnectorBuilder<Crypto>
impl<Crypto: Debug> Debug for HyperConnectorBuilder<Crypto>
source§impl<Crypto: Default> Default for HyperConnectorBuilder<Crypto>
impl<Crypto: Default> Default for HyperConnectorBuilder<Crypto>
source§fn default() -> HyperConnectorBuilder<Crypto>
fn default() -> HyperConnectorBuilder<Crypto>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<Crypto> Freeze for HyperConnectorBuilder<Crypto>where
Crypto: Freeze,
impl<Crypto = CryptoUnset> !RefUnwindSafe for HyperConnectorBuilder<Crypto>
impl<Crypto> Send for HyperConnectorBuilder<Crypto>where
Crypto: Send,
impl<Crypto> Sync for HyperConnectorBuilder<Crypto>where
Crypto: Sync,
impl<Crypto> Unpin for HyperConnectorBuilder<Crypto>where
Crypto: Unpin,
impl<Crypto = CryptoUnset> !UnwindSafe for HyperConnectorBuilder<Crypto>
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> 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>
Creates a shared type from an unshared type.