#[non_exhaustive]pub enum CertificateErrorPolicy {
ChromeInterstitial,
Cancel,
}Expand description
What to do about a navigation to a server whose TLS certificate does not validate.
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.
ChromeInterstitial
Show Chrome’s SSL interstitial, which offers the user a way to proceed anyway.
This is Chromium’s own behaviour and the runtime’s default, because an application that loads third-party content — an OAuth or SSO flow is the standing case — behaves the way the user’s browser would.
Cancel
Cancel the request. No interstitial, and no way for the user to override.
The hardened choice for an application that only ever loads origins it controls: there, a certificate error is either a misconfiguration or an interception, and neither is something to let a user click through.
Trait Implementations§
Source§impl Clone for CertificateErrorPolicy
impl Clone for CertificateErrorPolicy
impl Copy for CertificateErrorPolicy
Source§impl Debug for CertificateErrorPolicy
impl Debug for CertificateErrorPolicy
Source§impl Default for CertificateErrorPolicy
impl Default for CertificateErrorPolicy
impl Eq for CertificateErrorPolicy
Source§impl PartialEq for CertificateErrorPolicy
impl PartialEq for CertificateErrorPolicy
impl StructuralPartialEq for CertificateErrorPolicy
Auto Trait Implementations§
impl Freeze for CertificateErrorPolicy
impl RefUnwindSafe for CertificateErrorPolicy
impl Send for CertificateErrorPolicy
impl Sync for CertificateErrorPolicy
impl Unpin for CertificateErrorPolicy
impl UnsafeUnpin for CertificateErrorPolicy
impl UnwindSafe for CertificateErrorPolicy
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<T, U> ConvertReturnValue<U> for Twhere
T: Into<U>,
impl<T, U> ConvertReturnValue<U> for Twhere
T: Into<U>,
fn wrap_result(self) -> U
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
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.