#[non_exhaustive]pub enum TlsProvider {
Rustls,
NativeTls,
}Expand description
Setting for which TLS provider to use.
Defaults to Rustls because this has the highest chance
to compile and “just work” straight out of the box without installing additional
development dependencies.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Rustls
Rustls with the process-wide default cryptographic backend, or Ring if no process-wide default is set.
Requires the feature flag rustls.
This is the default.
NativeTls
Native-TLS for cases where it’s important to use the TLS libraries installed on the host running ureq.
Requires the feature flag native-tls and that using an Agent with
this config option set in the TlsConfig.
The setting is never picked up automatically.
Trait Implementations§
Source§impl Clone for TlsProvider
impl Clone for TlsProvider
Source§fn clone(&self) -> TlsProvider
fn clone(&self) -> TlsProvider
Returns a copy of the value. Read more
1.0.0 · 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 TlsProvider
impl Debug for TlsProvider
Source§impl Default for TlsProvider
impl Default for TlsProvider
Source§impl PartialEq for TlsProvider
impl PartialEq for TlsProvider
impl Copy for TlsProvider
impl Eq for TlsProvider
impl StructuralPartialEq for TlsProvider
Auto Trait Implementations§
impl Freeze for TlsProvider
impl RefUnwindSafe for TlsProvider
impl Send for TlsProvider
impl Sync for TlsProvider
impl Unpin for TlsProvider
impl UnwindSafe for TlsProvider
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.