Struct trillium_native_tls::NativeTlsConfig
source · pub struct NativeTlsConfig<Config> {
pub tcp_config: Config,
pub tls_connector: Arc<TlsConnector>,
}
Expand description
Configuration for the native tls client connector
Fields§
§tcp_config: Config
configuration for the inner Connector (usually tcp)
tls_connector: Arc<TlsConnector>
native tls configuration
Although async_native_tls calls this a TlsConnector, it’s actually a builder ¯_(ツ)_/¯
Implementations§
source§impl<C: Connector> NativeTlsConfig<C>
impl<C: Connector> NativeTlsConfig<C>
sourcepub fn with_tcp_config(self, config: C) -> Self
pub fn with_tcp_config(self, config: C) -> Self
replace the tcp config
Trait Implementations§
source§impl<Config> AsRef<Config> for NativeTlsConfig<Config>
impl<Config> AsRef<Config> for NativeTlsConfig<Config>
source§impl<Config: Clone> Clone for NativeTlsConfig<Config>
impl<Config: Clone> Clone for NativeTlsConfig<Config>
source§fn clone(&self) -> NativeTlsConfig<Config>
fn clone(&self) -> NativeTlsConfig<Config>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<T: Connector> Connector for NativeTlsConfig<T>
impl<T: Connector> Connector for NativeTlsConfig<T>
type Transport = NativeTlsTransport<<T as Connector>::Transport>
source§fn connect<'life0, 'life1, 'async_trait>(
&'life0 self,
url: &'life1 Url
) -> Pin<Box<dyn Future<Output = Result<Self::Transport>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn connect<'life0, 'life1, 'async_trait>(
&'life0 self,
url: &'life1 Url
) -> Pin<Box<dyn Future<Output = Result<Self::Transport>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Initiate a connection to the provided url Read more
fn spawn<Fut: Future<Output = ()> + Send + 'static>(&self, fut: Fut)
source§impl<Config: Debug> Debug for NativeTlsConfig<Config>
impl<Config: Debug> Debug for NativeTlsConfig<Config>
source§impl<Config: Default> Default for NativeTlsConfig<Config>
impl<Config: Default> Default for NativeTlsConfig<Config>
Auto Trait Implementations§
impl<Config> RefUnwindSafe for NativeTlsConfig<Config>where
Config: RefUnwindSafe,
impl<Config> Send for NativeTlsConfig<Config>where
Config: Send,
impl<Config> Sync for NativeTlsConfig<Config>where
Config: Sync,
impl<Config> Unpin for NativeTlsConfig<Config>where
Config: Unpin,
impl<Config> UnwindSafe for NativeTlsConfig<Config>where
Config: UnwindSafe,
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