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 use the system certificate verifier if the rustls-platform-verifier
feature is enabled. If the rustls-native-certs
feature is enabled, system certificate
store will be used. Otherwise, it 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
Source§impl Default for CertificateStore
impl Default for CertificateStore
Source§fn default() -> CertificateStore
fn default() -> CertificateStore
Returns the “default value” for a type. Read more
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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