#[non_exhaustive]pub enum TlsRootStore {
BackendDefault,
WebPki,
System,
Specific,
}Expand description
Root certificate source used when verifying TLS peers.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
BackendDefault
Use the backend’s default trust store behavior.
For rustls backends this uses bundled Mozilla roots. For native-tls
it uses the platform trust store.
WebPki
Use the bundled Mozilla roots from webpki-roots.
This is unsupported by native-tls backends.
System
Use the operating system trust store.
Specific
Use only certificates explicitly supplied with tls_root_ca_*.
Trait Implementations§
Source§impl Clone for TlsRootStore
impl Clone for TlsRootStore
Source§fn clone(&self) -> TlsRootStore
fn clone(&self) -> TlsRootStore
Returns a duplicate 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 TlsRootStore
impl Debug for TlsRootStore
Source§impl Default for TlsRootStore
impl Default for TlsRootStore
Source§fn default() -> TlsRootStore
fn default() -> TlsRootStore
Returns the “default value” for a type. Read more
Source§impl PartialEq for TlsRootStore
impl PartialEq for TlsRootStore
impl Copy for TlsRootStore
impl Eq for TlsRootStore
impl StructuralPartialEq for TlsRootStore
Auto Trait Implementations§
impl Freeze for TlsRootStore
impl RefUnwindSafe for TlsRootStore
impl Send for TlsRootStore
impl Sync for TlsRootStore
impl Unpin for TlsRootStore
impl UnsafeUnpin for TlsRootStore
impl UnwindSafe for TlsRootStore
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.