Struct TrustAnchor
struct TrustAnchor<'a> { ... }
A trust anchor (a.k.a. root CA)
Traditionally, certificate verification libraries have represented trust anchors as full X.509
root certificates. However, those certificates contain a lot more data than is needed for
verifying certificates. The TrustAnchor representation allows an application to store
just the essential elements of trust anchors.
The most common way to get one of these is to call rustls_webpki::anchor_from_trusted_cert().
Fields
subject: Der<'a>Value of the
subjectfield of the trust anchorsubject_public_key_info: Der<'a>Value of the
subjectPublicKeyInfofield of the trust anchorname_constraints: Option<Der<'a>>Value of DER-encoded
NameConstraints, containing name constraints to the trust anchor, if any
Implementations
impl TrustAnchor<'_>
fn to_owned(self: &Self) -> TrustAnchor<'static>Yield a
'staticlifetime of theTrustAnchorby allocating ownedDervariants
impl<'a> Clone for TrustAnchor<'a>
fn clone(self: &Self) -> TrustAnchor<'a>
impl<'a> Debug for TrustAnchor<'a>
fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result
impl<'a> Eq for TrustAnchor<'a>
impl<'a> Freeze for TrustAnchor<'a>
impl<'a> PartialEq for TrustAnchor<'a>
fn eq(self: &Self, other: &TrustAnchor<'a>) -> bool
impl<'a> RefUnwindSafe for TrustAnchor<'a>
impl<'a> Send for TrustAnchor<'a>
impl<'a> StructuralPartialEq for TrustAnchor<'a>
impl<'a> Sync for TrustAnchor<'a>
impl<'a> Unpin for TrustAnchor<'a>
impl<'a> UnwindSafe for TrustAnchor<'a>
impl<T> Any for TrustAnchor<'a>
fn type_id(self: &Self) -> TypeId
impl<T> Borrow for TrustAnchor<'a>
fn borrow(self: &Self) -> &T
impl<T> BorrowMut for TrustAnchor<'a>
fn borrow_mut(self: &mut Self) -> &mut T
impl<T> CloneToUninit for TrustAnchor<'a>
unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)
impl<T> From for TrustAnchor<'a>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToOwned for TrustAnchor<'a>
fn to_owned(self: &Self) -> Tfn clone_into(self: &Self, target: &mut T)
impl<T, U> Into for TrustAnchor<'a>
fn into(self: Self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom for TrustAnchor<'a>
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto for TrustAnchor<'a>
fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>