Enum tungstenite::error::TlsError [−][src]
#[non_exhaustive]
pub enum TlsError {
Native(Error),
Rustls(Error),
Webpki(Error),
InvalidDnsName,
}
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.
Tuple Fields of Native
0: Error
Rustls(Error)
Rustls error.
Tuple Fields of Rustls
0: Error
Webpki(Error)
Webpki error.
Tuple Fields of Webpki
0: Error
DNS name resolution error.