Struct rustls::OwnedTrustAnchor
source · pub struct OwnedTrustAnchor { /* private fields */ }
Expand description
This is like a webpki::TrustAnchor
, except it owns
rather than borrows its memory. That prevents lifetimes
leaking up the object tree.
Implementations§
source§impl OwnedTrustAnchor
impl OwnedTrustAnchor
sourcepub fn from_trust_anchor(t: &TrustAnchor<'_>) -> OwnedTrustAnchor
pub fn from_trust_anchor(t: &TrustAnchor<'_>) -> OwnedTrustAnchor
Copy a webpki::TrustAnchor
into owned memory
sourcepub fn to_trust_anchor(&self) -> TrustAnchor<'_>
pub fn to_trust_anchor(&self) -> TrustAnchor<'_>
Get a webpki::TrustAnchor
by borrowing the owned elements.
Trait Implementations§
source§impl Clone for OwnedTrustAnchor
impl Clone for OwnedTrustAnchor
source§fn clone(&self) -> OwnedTrustAnchor
fn clone(&self) -> OwnedTrustAnchor
Returns a copy of the value. Read more
1.0.0 · 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 OwnedTrustAnchor
impl Debug for OwnedTrustAnchor
source§impl From<TrustAnchor<'_>> for OwnedTrustAnchor
impl From<TrustAnchor<'_>> for OwnedTrustAnchor
source§fn from(t: TrustAnchor<'_>) -> OwnedTrustAnchor
fn from(t: TrustAnchor<'_>) -> OwnedTrustAnchor
Converts to this type from the input type.
source§impl<'a> Into<TrustAnchor<'a>> for &'a OwnedTrustAnchor
impl<'a> Into<TrustAnchor<'a>> for &'a OwnedTrustAnchor
source§fn into(self) -> TrustAnchor<'a>
fn into(self) -> TrustAnchor<'a>
Converts this type into the (usually inferred) input type.
Auto Trait Implementations§
impl RefUnwindSafe for OwnedTrustAnchor
impl Send for OwnedTrustAnchor
impl Sync for OwnedTrustAnchor
impl Unpin for OwnedTrustAnchor
impl UnwindSafe for OwnedTrustAnchor
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