pub struct TlsConfig {
pub acme: Option<AcmeConfig>,
pub client_auth: Option<ClientAuthConfig>,
pub on_demand: Option<OnDemandTlsConfig>,
pub min_version: Option<String>,
pub max_version: Option<String>,
pub cipher_suites: Vec<String>,
pub ocsp_stapling: bool,
pub ecdh_curves: Vec<String>,
}Expand description
Global TLS / ACME settings.
Fields§
§acme: Option<AcmeConfig>§client_auth: Option<ClientAuthConfig>§on_demand: Option<OnDemandTlsConfig>§min_version: Option<String>§max_version: Option<String>§cipher_suites: Vec<String>§ocsp_stapling: boolEnable OCSP stapling. For ACME-managed certificates, certon’s maintenance loop already handles OCSP refresh automatically. For manually-loaded certificates, this flag signals intent; full OCSP stapling for manual certs requires AIA extension parsing (x509-parser + reqwest).
ecdh_curves: Vec<String>ECDH key-exchange curves to enable. Supported values: “x25519”, “secp256r1”, “secp384r1”. Empty means use rustls defaults.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TlsConfig
impl RefUnwindSafe for TlsConfig
impl Send for TlsConfig
impl Sync for TlsConfig
impl Unpin for TlsConfig
impl UnsafeUnpin for TlsConfig
impl UnwindSafe for TlsConfig
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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