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: Configconfiguration 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 duplicate 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>
Source§type Udp = <T as Connector>::Udp
type Udp = <T as Connector>::Udp
The async UDP socket type for this connector. Used by QUIC adapters
for HTTP/3 support. Connectors that do not support UDP should set
this to
().Source§async fn connect(&self, url: &Url) -> Result<Self::Transport>
async fn connect(&self, url: &Url) -> Result<Self::Transport>
Initiate a connection to the provided url
Source§async fn resolve(&self, host: &str, port: u16) -> Result<Vec<SocketAddr>>
async fn resolve(&self, host: &str, port: u16) -> Result<Vec<SocketAddr>>
Perform a DNS lookup for a given host-and-port
Source§fn arced(self) -> ArcedConnectorwhere
Self: Sized,
fn arced(self) -> ArcedConnectorwhere
Self: Sized,
Returns an object-safe
ArcedConnector. Do not implement this.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> Freeze for NativeTlsConfig<Config>where
Config: Freeze,
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> UnsafeUnpin for NativeTlsConfig<Config>where
Config: UnsafeUnpin,
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