Struct rustls::OwnedTrustAnchor [−][src]
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]
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 Clone for OwnedTrustAnchor[src]fn clone(&self) -> OwnedTrustAnchor[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl From<TrustAnchor<'_>> for OwnedTrustAnchor[src]
impl From<TrustAnchor<'_>> for OwnedTrustAnchor[src]fn from(t: TrustAnchor<'_>) -> OwnedTrustAnchor[src]
impl<'a> Into<TrustAnchor<'a>> for &'a OwnedTrustAnchor[src]
impl<'a> Into<TrustAnchor<'a>> for &'a OwnedTrustAnchor[src]