pub enum CertificateStore {
Default,
None,
}
Expand description
Source for the base set of root certificates to trust.
Variants§
Default
Use the default for the TLS backend.
For native-tls, this will use the system certificate store on Windows, the keychain on
macOS, and OpenSSL directories on Linux (usually /etc/ssl
).
For rustls, this will also use the the system store if the rustls-native-certs
feature is
enabled, or will fall back to webpki-roots
.
The boring-tls backend uses the same logic as OpenSSL on all platforms.
None
Don’t use any system certificates.
Trait Implementations§
Source§impl Clone for CertificateStore
impl Clone for CertificateStore
Source§fn clone(&self) -> CertificateStore
fn clone(&self) -> CertificateStore
Returns a copy 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 CertificateStore
impl Debug for CertificateStore
Auto Trait Implementations§
impl Freeze for CertificateStore
impl RefUnwindSafe for CertificateStore
impl Send for CertificateStore
impl Sync for CertificateStore
impl Unpin for CertificateStore
impl UnwindSafe for CertificateStore
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