pub struct TrustCerts(/* private fields */);Expand description
A RootCertVerifier that trusts the supplied list of certificates.
Only compares the public keys.
Implementations§
Source§impl TrustCerts
impl TrustCerts
Sourcepub fn new(certs: Vec<Certificate>) -> Self
pub fn new(certs: Vec<Certificate>) -> Self
Create a new verifier that trusts the supplied certificates.
Trait Implementations§
Source§impl RootCertVerifier for TrustCerts
impl RootCertVerifier for TrustCerts
Auto Trait Implementations§
impl Freeze for TrustCerts
impl RefUnwindSafe for TrustCerts
impl Send for TrustCerts
impl Sync for TrustCerts
impl Unpin for TrustCerts
impl UnwindSafe for TrustCerts
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