pub struct TransportTlsConfig {
pub cert_path: Option<String>,
pub key_path: Option<String>,
pub client_ca_path: Option<String>,
pub min_version: TlsVersion,
pub max_version: TlsVersion,
pub alpn_protocols: Vec<AlpnProtocol>,
}Expand description
TLS-related settings.
Fields§
§cert_path: Option<String>Optional server certificate path in PEM format.
key_path: Option<String>Optional server private key path in PEM or PKCS#8 format.
client_ca_path: Option<String>Optional client CA bundle for mTLS validation.
min_version: TlsVersionMinimum accepted TLS protocol version.
max_version: TlsVersionMaximum accepted TLS protocol version.
alpn_protocols: Vec<AlpnProtocol>Negotiated ALPN protocols when TLS is enabled.
Implementations§
Source§impl TransportTlsConfig
impl TransportTlsConfig
pub fn has_server_credentials(&self) -> bool
Trait Implementations§
Source§impl Clone for TransportTlsConfig
impl Clone for TransportTlsConfig
Source§fn clone(&self) -> TransportTlsConfig
fn clone(&self) -> TransportTlsConfig
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 TransportTlsConfig
impl Debug for TransportTlsConfig
Source§impl PartialEq for TransportTlsConfig
impl PartialEq for TransportTlsConfig
Source§impl Serialize for TransportTlsConfig
impl Serialize for TransportTlsConfig
impl Eq for TransportTlsConfig
impl StructuralPartialEq for TransportTlsConfig
Auto Trait Implementations§
impl Freeze for TransportTlsConfig
impl RefUnwindSafe for TransportTlsConfig
impl Send for TransportTlsConfig
impl Sync for TransportTlsConfig
impl Unpin for TransportTlsConfig
impl UnsafeUnpin for TransportTlsConfig
impl UnwindSafe for TransportTlsConfig
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.