pub enum CertificateAuthority {
WebpkiRoots,
OsRoots,
WebpkiAndOsRoots,
PemFile,
}
Expand description
Possible sources of the root certificates used to validate the server’s TLS certificate.
Variants§
WebpkiRoots
Use the root certificates provided by the
webpki-roots
crate.
OsRoots
Use the root certificates provided by the OS
WebpkiAndOsRoots
Combine the root certificates provided by the OS and the webpki-roots
crate.
PemFile
Use the root certificates provided in a PEM-encoded file.
Trait Implementations§
Source§impl Clone for CertificateAuthority
impl Clone for CertificateAuthority
Source§fn clone(&self) -> CertificateAuthority
fn clone(&self) -> CertificateAuthority
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 CertificateAuthority
impl Debug for CertificateAuthority
Source§impl PartialEq for CertificateAuthority
impl PartialEq for CertificateAuthority
impl Copy for CertificateAuthority
impl StructuralPartialEq for CertificateAuthority
Auto Trait Implementations§
impl Freeze for CertificateAuthority
impl RefUnwindSafe for CertificateAuthority
impl Send for CertificateAuthority
impl Sync for CertificateAuthority
impl Unpin for CertificateAuthority
impl UnwindSafe for CertificateAuthority
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