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
sourceimpl 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
sourceimpl Clone for OwnedTrustAnchor
impl Clone for OwnedTrustAnchor
sourcefn clone(&self) -> OwnedTrustAnchor
fn clone(&self) -> OwnedTrustAnchor
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for OwnedTrustAnchor
impl Debug for OwnedTrustAnchor
sourceimpl From<TrustAnchor<'_>> for OwnedTrustAnchor
impl From<TrustAnchor<'_>> for OwnedTrustAnchor
sourcefn from(t: TrustAnchor<'_>) -> OwnedTrustAnchor
fn from(t: TrustAnchor<'_>) -> OwnedTrustAnchor
Converts to this type from the input type.
sourceimpl<'a> Into<TrustAnchor<'a>> for &'a OwnedTrustAnchor
impl<'a> Into<TrustAnchor<'a>> for &'a OwnedTrustAnchor
sourcefn 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more