pub struct ClientConfig {
pub cipher_suites: Option<Vec<CipherSuite>>,
pub compression_algorithms: Option<Vec<CompressionAlgorithm>>,
pub extensions: Option<Vec<ClientHelloExtension>>,
pub server_verify_mode: Option<ServerVerifyMode>,
pub client_auth: Option<ClientAuth>,
pub key_logger: Option<KeyLogIntent>,
pub store_server_certificate_chain: bool,
}Expand description
Common API to configure a TLS Client
Fields§
§cipher_suites: Option<Vec<CipherSuite>>optional intent for cipher suites to be used by client
compression_algorithms: Option<Vec<CompressionAlgorithm>>optional intent for compression algorithms to be used by client
extensions: Option<Vec<ClientHelloExtension>>optional intent for extensions to be used by client
Commpon examples are:
server_verify_mode: Option<ServerVerifyMode>optionally define how server should be verified by client
client_auth: Option<ClientAuth>optionally define raw (PEM-encoded) client auth certs
key_logger: Option<KeyLogIntent>key log intent
store_server_certificate_chain: boolif enabled server certificates will be stored in [NegotiatedTlsParameters]
Implementations§
Source§impl ClientConfig
impl ClientConfig
Sourcepub fn merge(&mut self, other: ClientConfig)
pub fn merge(&mut self, other: ClientConfig)
Merge this ClientConfig with aother one.
Trait Implementations§
Source§impl Clone for ClientConfig
impl Clone for ClientConfig
Source§fn clone(&self) -> ClientConfig
fn clone(&self) -> ClientConfig
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 Debug for ClientConfig
impl Debug for ClientConfig
Source§impl Default for ClientConfig
impl Default for ClientConfig
Source§fn default() -> ClientConfig
fn default() -> ClientConfig
Returns the “default value” for a type. Read more
Source§impl From<ClientConfig> for ClientConfigChain
impl From<ClientConfig> for ClientConfigChain
Source§fn from(value: ClientConfig) -> ClientConfigChain
fn from(value: ClientConfig) -> ClientConfigChain
Converts to this type from the input type.
Source§impl From<ClientConfig> for ClientHello
impl From<ClientConfig> for ClientHello
Source§fn from(value: ClientConfig) -> ClientHello
fn from(value: ClientConfig) -> ClientHello
Converts to this type from the input type.
Source§impl From<ClientHello> for ClientConfig
impl From<ClientHello> for ClientConfig
Source§fn from(value: ClientHello) -> ClientConfig
fn from(value: ClientHello) -> ClientConfig
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ClientConfig
impl RefUnwindSafe for ClientConfig
impl Send for ClientConfig
impl Sync for ClientConfig
impl Unpin for ClientConfig
impl UnwindSafe for ClientConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more