Enum diesel::result::ConnectionError [−][src]
pub enum ConnectionError {
InvalidCString(NulError),
BadConnection(String),
InvalidConnectionUrl(String),
CouldntSetupConfiguration(Error),
// some variants omitted
}
Expand description
Errors which can occur during Connection::establish
Variants
InvalidCString(NulError)
The connection URL contained a NUL
byte.
Tuple Fields of InvalidCString
0: NulError
BadConnection(String)
The database returned an error.
Tuple Fields of BadConnection
0: String
InvalidConnectionUrl(String)
The connection URL could not be parsed.
Tuple Fields of InvalidConnectionUrl
0: String
CouldntSetupConfiguration(Error)
Diesel could not configure the database connection.
Diesel may try to automatically set session specific configuration
values, such as UTF8 encoding, or enabling the ||
operator on MySQL.
This variant is returned if an error occurred executing the query to set
those options. Diesel will never affect global configuration.
Tuple Fields of CouldntSetupConfiguration
0: Error
Trait Implementations
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
👎 Deprecated since 1.33.0:
replaced by Error::source, which can support downcasting
The lower-level source of this error, if any. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.