pub struct TlsClientConfigBuilder { /* private fields */ }Expand description
Client config builder (owned builder).
Implementations§
Source§impl TlsClientConfigBuilder
impl TlsClientConfigBuilder
Sourcepub fn new_insecure() -> Result<Self>
pub fn new_insecure() -> Result<Self>
Build a client TLS config that disables certificate verification.
Sourcepub fn new_with_native_certs() -> Result<Self>
pub fn new_with_native_certs() -> Result<Self>
Build a client TLS config from native system trust roots.
Sourcepub fn new_with_webpki_verifier(
verifier: Arc<WebPkiServerVerifier>,
) -> Result<Self>
pub fn new_with_webpki_verifier( verifier: Arc<WebPkiServerVerifier>, ) -> Result<Self>
Build a client TLS config with a custom WebPKI verifier.
Sourcepub fn with_alpn_protocols(self, protocols: Vec<Vec<u8>>) -> Self
pub fn with_alpn_protocols(self, protocols: Vec<Vec<u8>>) -> Self
Override ALPN protocol list.
Sourcepub fn build(self) -> TlsClientConfig
pub fn build(self) -> TlsClientConfig
Finalize and return the client TLS config.
Trait Implementations§
Source§impl Clone for TlsClientConfigBuilder
impl Clone for TlsClientConfigBuilder
Source§fn clone(&self) -> TlsClientConfigBuilder
fn clone(&self) -> TlsClientConfigBuilder
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for TlsClientConfigBuilder
impl !UnwindSafe for TlsClientConfigBuilder
impl Freeze for TlsClientConfigBuilder
impl Send for TlsClientConfigBuilder
impl Sync for TlsClientConfigBuilder
impl Unpin for TlsClientConfigBuilder
impl UnsafeUnpin for TlsClientConfigBuilder
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