pub struct Trust(/* private fields */);Expand description
The roots a network store’s certificate is verified against.
Implementations§
Source§impl Trust
impl Trust
Sourcepub fn system() -> Result<Self, String>
pub fn system() -> Result<Self, String>
This machine’s trust roots: the Mozilla bundle every HTTPS client in
haematite already verifies against (webpki-roots, as ureq and reqwest
build it), and every certificate in the PEM file SSL_CERT_FILE
names, when it is set, for a site’s own authority.
§Errors
door_trust_roots_invalid, naming the file, when SSL_CERT_FILE is
set and cannot be read or holds no certificate.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Trust
impl !UnwindSafe for Trust
impl Freeze for Trust
impl Send for Trust
impl Sync for Trust
impl Unpin for Trust
impl UnsafeUnpin for Trust
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoMaybeUndefined<T> for T
impl<T> IntoMaybeUndefined<T> for T
Source§fn into_maybe_undefined(self) -> MaybeUndefined<T>
fn into_maybe_undefined(self) -> MaybeUndefined<T>
Converts this value into a three-state builder argument.
Source§impl<T> IntoOption<T> for T
impl<T> IntoOption<T> for T
Source§fn into_option(self) -> Option<T>
fn into_option(self) -> Option<T>
Converts this value into an optional builder argument.