usestd::net::TcpStream;/// Low level API Errors
////// These errors represent (e.g. I/O, deserialization, parsing, etc).
/// For protocol level errors see [`crate::error::Error`]
#[derive(Debug, thiserror::Error)]#[non_exhaustive]pubenumError{/// The connection encountered some sort of I/O error
#[error("IO {0}")]
Io(#[from]std::io::Error),/// An error raised by the system's TLS implementation
#[error("TLS Error -- {0}")]
Tls(#[from]native_tls::Error),/// The TLS Handshake has failed
#[error("TLS Handshake Error -- {0}")]
TlsHandshake(#[from]native_tls::HandshakeError<TcpStream>),/// The server returned data that could not be parsed
////// This likely indicates that either a bug in Brokaw's response parser,
/// data corruption, or an out of spec server.
////// This could also occur if an unsupported compression mechanism is enabled.
#[error("Failed to parse response")]
Parse,}/// A Result returned by the low level API
pubtypeResult<T>=std::result::Result<T, Error>;