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.0const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl 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
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstablefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> ToOwned for Twhere
T: Clone,
impl<T> ToOwned for Twhere
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
fn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
Uses borrowed data to replace owned data, usually by cloning. Read more