pub enum TtfbError {
InvalidUrl(InvalidUrlError),
CantResolveDns(ResolveDnsError),
CantConnectTcp(Error),
CantConnectTls(HandshakeError<TcpStream>),
CantVerifyTls(HandshakeError<TcpStream>),
CantConnectHttp(Error),
NoHttpResponse,
OtherStreamError(Error),
CantConfigureDNSError(Error),
}
Expand description
Errors of the public interface of this crate.
Variants§
InvalidUrl(InvalidUrlError)
Invalid URL
CantResolveDns(ResolveDnsError)
Can’t resolve DNS.
CantConnectTcp(Error)
Can’t establish TCP-Connection.
CantConnectTls(HandshakeError<TcpStream>)
Can’t establish TLS-Connection.
CantVerifyTls(HandshakeError<TcpStream>)
Can’t verify TLS-Connection.
CantConnectHttp(Error)
Can’t establish HTTP/1.1-Connection.
NoHttpResponse
Didn’t receive any data after sending the HTTP GET request.
OtherStreamError(Error)
There was a problem with the TCP stream.
CantConfigureDNSError(Error)
Can’t configure trust-dns-resolver configuration.
Trait Implementations§
source§impl Error for TtfbError
impl Error for TtfbError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for TtfbError
impl !RefUnwindSafe for TtfbError
impl Send for TtfbError
impl Sync for TtfbError
impl Unpin for TtfbError
impl !UnwindSafe for TtfbError
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