Struct isahc::config::SslOption [−][src]
A flag that can be used to alter the behavior of SSL/TLS connections.
Most options are for disabling security checks that introduce security risks, but may be required as a last resort.
Implementations
impl SslOption
[src]
pub const NONE: Self
[src]
An empty set of options. This is the default.
pub const DANGER_ACCEPT_INVALID_CERTS: Self
[src]
Disables certificate validation.
Warning
You should think very carefully before using this method. If invalid certificates are trusted, any certificate for any site will be trusted for use. This includes expired certificates. This introduces significant vulnerabilities, and should only be used as a last resort.
pub const DANGER_ACCEPT_INVALID_HOSTS: Self
[src]
Disables hostname verification on certificates.
Warning
You should think very carefully before you use this method. If hostname verification is not used, any valid certificate for any site will be trusted for use from any other. This introduces a significant vulnerability to man-in-the-middle attacks.
pub const DANGER_ACCEPT_REVOKED_CERTS: Self
[src]
Disables certificate revocation checks for backends where such behavior is present.
This option is only supported for Schannel (the native Windows SSL library).
Trait Implementations
impl BitOr<SslOption> for SslOption
[src]
type Output = Self
The resulting type after applying the |
operator.
fn bitor(self, other: Self) -> Self
[src]
impl BitOrAssign<SslOption> for SslOption
[src]
fn bitor_assign(&mut self, rhs: Self)
[src]
impl Clone for SslOption
[src]
impl Copy for SslOption
[src]
impl Debug for SslOption
[src]
impl Default for SslOption
[src]
Auto Trait Implementations
impl RefUnwindSafe for SslOption
[src]
impl Send for SslOption
[src]
impl Sync for SslOption
[src]
impl Unpin for SslOption
[src]
impl UnwindSafe for SslOption
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> WithSubscriber for T
[src]
pub fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,