pub enum Error {
Io(Error),
Tls(Error),
}
Expand description
Generic encryption error.
Returns the io::Error
s from IO during the handshake
and when reading and writing to the underlying stream.
If any [rustls::Error
]s occur during reading and writing,
those are returned.
Variants§
Io(Error)
An IO error occurred during operation.
Tls(Error)
Available on crate feature
https
only.A TLS error was emitted.