Struct hyper_static_server::tokio_rustls::webpki::TrustAnchor [−][src]
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 webpki::trust_anchor_util
module
provides functions for converting X.509 certificates to to the minimized
TrustAnchor
representation, either at runtime or in a build script.
Fields
subject: &'a [u8]
The value of the subject
field of the trust anchor.
spki: &'a [u8]
The value of the subjectPublicKeyInfo
field of the trust anchor.
name_constraints: Option<&'a [u8]>
The value of a DER-encoded NameConstraints, containing name constraints to apply to the trust anchor, if any.
Trait Implementations
impl<'a> Debug for TrustAnchor<'a>
[src]
impl<'_> From<TrustAnchor<'_>> for OwnedTrustAnchor
pub fn from(t: TrustAnchor<'_>) -> OwnedTrustAnchor
impl<'a> Into<TrustAnchor<'a>> for &'a OwnedTrustAnchor
pub fn into(self) -> TrustAnchor<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for TrustAnchor<'a>
[src]
impl<'a> Send for TrustAnchor<'a>
[src]
impl<'a> Sync for TrustAnchor<'a>
[src]
impl<'a> Unpin for TrustAnchor<'a>
[src]
impl<'a> UnwindSafe for TrustAnchor<'a>
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut Tⓘ
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
[src]
Notable traits for Instrumented<T>
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
pub fn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
[src]
Notable traits for Instrumented<T>
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
[src]
Notable traits for Instrumented<T>
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
pub fn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
[src]
Notable traits for Instrumented<T>
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,