pub struct RustlsConfig<Config> {
pub rustls_config: RustlsClientConfig,
pub tcp_config: Config,
}Expand description
Client configuration for RustlsConnector
Fields§
§rustls_config: RustlsClientConfigconfiguration for rustls itself
tcp_config: Configconfiguration for the inner transport
Implementations§
Source§impl<C: Connector> RustlsConfig<C>
impl<C: Connector> RustlsConfig<C>
Source§impl<C: Connector> RustlsConfig<C>
impl<C: Connector> RustlsConfig<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: Clone> Clone for RustlsConfig<Config>
impl<Config: Clone> Clone for RustlsConfig<Config>
Source§fn clone(&self) -> RustlsConfig<Config>
fn clone(&self) -> RustlsConfig<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<C: Connector> Connector for RustlsConfig<C>
impl<C: Connector> Connector for RustlsConfig<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 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 RustlsConfig<Config>
impl<Config: Debug> Debug for RustlsConfig<Config>
Source§impl<Config: Default> Default for RustlsConfig<Config>
impl<Config: Default> Default for RustlsConfig<Config>
Source§fn default() -> RustlsConfig<Config>
fn default() -> RustlsConfig<Config>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<Config> Freeze for RustlsConfig<Config>where
Config: Freeze,
impl<Config> !RefUnwindSafe for RustlsConfig<Config>
impl<Config> Send for RustlsConfig<Config>where
Config: Send,
impl<Config> Sync for RustlsConfig<Config>where
Config: Sync,
impl<Config> Unpin for RustlsConfig<Config>where
Config: Unpin,
impl<Config> UnsafeUnpin for RustlsConfig<Config>where
Config: UnsafeUnpin,
impl<Config> !UnwindSafe for RustlsConfig<Config>
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