pub struct TrustAnchors { /* private fields */ }Expand description
Which certificates to trust.
Implementations§
Source§impl TrustAnchors
impl TrustAnchors
Sourcepub fn system() -> Self
pub fn system() -> Self
Whatever the platform trusts.
The platform’s store, not a copy of one vendor’s list compiled in. The difference matters twice: an operator who adds a corporate CA expects sipx to honour it, and a root that is distrusted after a compromise stops being trusted when the OS says so rather than when someone remembers to bump a dependency.
Trait Implementations§
Source§impl Clone for TrustAnchors
impl Clone for TrustAnchors
Source§fn clone(&self) -> TrustAnchors
fn clone(&self) -> TrustAnchors
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TrustAnchors
impl Debug for TrustAnchors
Source§impl Default for TrustAnchors
impl Default for TrustAnchors
Source§fn default() -> TrustAnchors
fn default() -> TrustAnchors
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TrustAnchors
impl RefUnwindSafe for TrustAnchors
impl Send for TrustAnchors
impl Sync for TrustAnchors
impl Unpin for TrustAnchors
impl UnsafeUnpin for TrustAnchors
impl UnwindSafe for TrustAnchors
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more