#[non_exhaustive]pub enum ErrorKind {
Config,
Connect,
Auth,
Db,
Type,
RowCount,
TooLarge,
Closed,
PoolTimeout,
Protocol,
}Expand description
What kind of error it is.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Config
The configuration or the connection URL is not valid.
Connect
Opening the connection failed: name resolution, TCP, TLS, or the connect timeout.
Auth
The server refused the credentials, or asked for an authentication method this crate does not support.
Db
The server reported an error for the statement. Error::db has the
details.
Type
A value could not be converted between Rust and PostgreSQL: a
parameter, or a column read with Row::get.
RowCount
query_one found no row or more than one.
TooLarge
The result was larger than
Config::max_result_size.
Closed
The connection is closed: the server closed it, the network failed, or
an earlier error broke it. Open a new one (a Pool does
this by itself).
PoolTimeout
No pooled connection became free within
Pool::wait_timeout.
Protocol
The server sent something this crate cannot understand. The connection is closed.