pub struct OpenSslConfig<Config> {
pub tcp_config: Config,
pub ssl_config: OpenSslClientConfig,
}Expand description
Configuration for the openssl client connector
Fields§
§tcp_config: Configconfiguration for the inner Connector (usually tcp)
ssl_config: OpenSslClientConfigthe openssl client configuration
Implementations§
Source§impl<C: Connector> OpenSslConfig<C>
impl<C: Connector> OpenSslConfig<C>
Sourcepub fn new(ssl_config: impl Into<OpenSslClientConfig>, tcp_config: C) -> Self
pub fn new(ssl_config: impl Into<OpenSslClientConfig>, tcp_config: C) -> Self
build a new OpenSslConfig from a ssl client configuration and a tcp config
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<C> AsRef<C> for OpenSslConfig<C>
impl<C> AsRef<C> for OpenSslConfig<C>
Source§impl<Config: Clone> Clone for OpenSslConfig<Config>
impl<Config: Clone> Clone for OpenSslConfig<Config>
Source§impl<C: Connector> Connector for OpenSslConfig<C>
impl<C: Connector> Connector for OpenSslConfig<C>
Source§type Udp = <C as Connector>::Udp
type Udp = <C 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 connect_to(&self, destination: Destination) -> Result<Self::Transport>
async fn connect_to(&self, destination: Destination) -> Result<Self::Transport>
Open a connection to
destination: dialing its pre-resolved addresses if present, otherwise
resolving its host, and advertising any per-connection ALPN it carries. Read moreSource§async fn connect_over(
&self,
transport: Box<dyn Transport>,
destination: Destination,
) -> Result<Box<dyn Transport>>
async fn connect_over( &self, transport: Box<dyn Transport>, destination: Destination, ) -> Result<Box<dyn Transport>>
Establish this connector’s transport security for
destination over an already-open
byte stream — e.g. an HTTP CONNECT tunnel — instead of dialing. Read moreSource§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 OpenSslConfig<Config>
impl<Config: Debug> Debug for OpenSslConfig<Config>
Auto Trait Implementations§
impl<Config> Forget for OpenSslConfig<Config>
impl<Config> Freeze for OpenSslConfig<Config>where
Config: Freeze,
impl<Config> RefUnwindSafe for OpenSslConfig<Config>where
Config: RefUnwindSafe,
impl<Config> Send for OpenSslConfig<Config>where
Config: Send,
impl<Config> Sync for OpenSslConfig<Config>where
Config: Sync,
impl<Config> Unpin for OpenSslConfig<Config>where
Config: Unpin,
impl<Config> UnsafeUnpin for OpenSslConfig<Config>where
Config: UnsafeUnpin,
impl<Config> UnwindSafe for OpenSslConfig<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