Enum tungstenite::error::TlsError [−][src]
#[non_exhaustive] pub enum TlsError { Native(Error), Rustls(TLSError), Dns(InvalidDNSNameError), }
Expand description
TLS errors.
Note that even if you enable only the rustls-based TLS support, the error at runtime could still
be Native
, as another crate in the dependency graph may enable native TLS support.
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.
Native(Error)
Native TLS error.
Rustls(TLSError)
Rustls error.
Dns(InvalidDNSNameError)
DNS name resolution error.
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for TlsError
impl !UnwindSafe for TlsError