Enum CertificateVerification
pub enum CertificateVerification {
NativeRoots,
TrustedCertificates(PathBuf),
Disabled,
}Expand description
Endpoint::create_client fails on BROWSER for every variant but NativeRoots.
Variants§
NativeRoots
Trusts the operating system’s root certificates.
TrustedCertificates(PathBuf)
Trusts only the certificates of this PEM file.
Disabled
Implementations§
§impl CertificateVerification
impl CertificateVerification
pub fn native_roots_or_disabled(verify: bool) -> CertificateVerification
Trait Implementations§
§impl Clone for CertificateVerification
impl Clone for CertificateVerification
§fn clone(&self) -> CertificateVerification
fn clone(&self) -> CertificateVerification
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 more§impl Debug for CertificateVerification
impl Debug for CertificateVerification
§impl Default for CertificateVerification
impl Default for CertificateVerification
§fn default() -> CertificateVerification
fn default() -> CertificateVerification
Returns the “default value” for a type. Read more
impl Eq for CertificateVerification
§impl PartialEq for CertificateVerification
impl PartialEq for CertificateVerification
impl StructuralPartialEq for CertificateVerification
Auto Trait Implementations§
impl Freeze for CertificateVerification
impl RefUnwindSafe for CertificateVerification
impl Send for CertificateVerification
impl Sync for CertificateVerification
impl Unpin for CertificateVerification
impl UnsafeUnpin for CertificateVerification
impl UnwindSafe for CertificateVerification
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.