pub struct CertPool { /* private fields */ }Expand description
An unordered collection of certificates used as input to path building.
Certificates are stored by DER bytes and decoded on demand. Add all candidate intermediate certificates here; the path builder will select and order the subset that forms a valid path to a trust anchor.
Note: Hash is not derived because x509_cert::Certificate does not
currently implement Hash (upstream limitation); CertPool cannot be
used as a hash-map key until that changes.
Implementations§
Source§impl CertPool
impl CertPool
Sourcepub fn add(&mut self, cert: Certificate)
pub fn add(&mut self, cert: Certificate)
Add a certificate to the pool.
Sourcepub fn iter(&self) -> Iter<'_, Certificate>
pub fn iter(&self) -> Iter<'_, Certificate>
Iterate over the certificates in the pool.
Equivalent to (&pool).into_iter().
Trait Implementations§
Source§impl<'a> IntoIterator for &'a CertPool
impl<'a> IntoIterator for &'a CertPool
impl Eq for CertPool
impl StructuralPartialEq for CertPool
Auto Trait Implementations§
impl Freeze for CertPool
impl RefUnwindSafe for CertPool
impl Send for CertPool
impl Sync for CertPool
impl Unpin for CertPool
impl UnsafeUnpin for CertPool
impl UnwindSafe for CertPool
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