pub enum TrustStore {
NativeWithWebPkiFallback,
NativeOnly,
WebPkiOnly,
Custom(Vec<CertificateDer<'static>>),
}Expand description
Trust store source for certificate verification.
Variants§
NativeWithWebPkiFallback
Use native system roots with packaged WebPKI roots as a construction
fallback when tls-native-roots is enabled. Without that feature, the
default builder uses packaged WebPKI roots directly.
NativeOnly
Use only native system roots. Fails at construction if the platform root store is unavailable.
WebPkiOnly
Use only packaged Mozilla/WebPKI roots. Does not consult the operating system trust store.
Custom(Vec<CertificateDer<'static>>)
Use the provided CA certificates as the sole trust anchor. These replace all other roots.
Trait Implementations§
Source§impl Clone for TrustStore
impl Clone for TrustStore
Source§fn clone(&self) -> TrustStore
fn clone(&self) -> TrustStore
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TrustStore
impl Debug for TrustStore
Source§impl Default for TrustStore
impl Default for TrustStore
Source§fn default() -> TrustStore
fn default() -> TrustStore
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TrustStore
impl RefUnwindSafe for TrustStore
impl Send for TrustStore
impl Sync for TrustStore
impl Unpin for TrustStore
impl UnsafeUnpin for TrustStore
impl UnwindSafe for TrustStore
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