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
Performs the conversion.
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>
Performs the conversion.
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 · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more