pub struct ClientOptions {
pub alpn: Vec<Vec<u8>>,
pub ca: Option<Vec<CertificateDer<'static>>>,
pub extra_ca_pem: Vec<u8>,
pub reject_unauthorized: bool,
pub enable_sni: bool,
pub provider: Option<Arc<CryptoProvider>>,
}Expand description
Node’s explicit ca replaces default roots. Extra CA PEM augments Mozilla
roots only when explicit CA is absent. The host reads NODE_EXTRA_CA_CERTS
once at startup and supplies its contents; this crate never reads files/env.
Fields§
§alpn: Vec<Vec<u8>>§ca: Option<Vec<CertificateDer<'static>>>§extra_ca_pem: Vec<u8>§enable_sni: bool§provider: Option<Arc<CryptoProvider>>The rustls crypto provider for handshakes and signature checks. None
uses ring with the default ring feature, otherwise the process-default
provider. Naming one lets a host link exactly one provider.
Trait Implementations§
Source§impl Clone for ClientOptions
impl Clone for ClientOptions
Source§impl Debug for ClientOptions
impl Debug for ClientOptions
Auto Trait Implementations§
impl !RefUnwindSafe for ClientOptions
impl !UnwindSafe for ClientOptions
impl Forget for ClientOptions
impl Freeze for ClientOptions
impl Send for ClientOptions
impl Sync for ClientOptions
impl Unpin for ClientOptions
impl UnsafeUnpin for ClientOptions
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