pub struct TrustedRoots { /* private fields */ }Expand description
A collection of trusted roots.
Validation succeeds only if the chain anchors against at least one entry here.
Implementations§
Source§impl TrustedRoots
impl TrustedRoots
Sourcepub fn add(&mut self, anchor: TrustAnchor)
pub fn add(&mut self, anchor: TrustAnchor)
Add a trust anchor to this set.
Sourcepub fn iter(&self) -> impl Iterator<Item = &TrustAnchor>
pub fn iter(&self) -> impl Iterator<Item = &TrustAnchor>
Iterate over all trust anchors in this set.
Trait Implementations§
Source§impl Clone for TrustedRoots
impl Clone for TrustedRoots
Source§fn clone(&self) -> TrustedRoots
fn clone(&self) -> TrustedRoots
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 TrustedRoots
impl Debug for TrustedRoots
Source§impl Default for TrustedRoots
impl Default for TrustedRoots
Source§fn default() -> TrustedRoots
fn default() -> TrustedRoots
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TrustedRoots
impl RefUnwindSafe for TrustedRoots
impl Send for TrustedRoots
impl Sync for TrustedRoots
impl Unpin for TrustedRoots
impl UnsafeUnpin for TrustedRoots
impl UnwindSafe for TrustedRoots
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