[][src]Struct rustls::OwnedTrustAnchor

pub struct OwnedTrustAnchor { /* fields omitted */ }

This is like a webpki::TrustAnchor, except it owns rather than borrows its memory. That prevents lifetimes leaking up the object tree.

Implementations

impl OwnedTrustAnchor[src]

pub fn from_trust_anchor(t: &TrustAnchor<'_>) -> OwnedTrustAnchor[src]

Copy a webpki::TrustAnchor into owned memory

pub fn to_trust_anchor(&self) -> TrustAnchor<'_>[src]

Get a webpki::TrustAnchor by borrowing the owned elements.

Trait Implementations

impl Clone for OwnedTrustAnchor[src]

impl Debug for OwnedTrustAnchor[src]

impl<'_> From<TrustAnchor<'_>> for OwnedTrustAnchor[src]

impl<'a> Into<TrustAnchor<'a>> for &'a OwnedTrustAnchor[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.