Enum diesel::result::ConnectionError [−][src]
pub enum ConnectionError { InvalidCString(NulError), BadConnection(String), InvalidConnectionUrl(String), CouldntSetupConfiguration(Error), // some variants omitted }
Errors which can occur during Connection::establish
Variants
InvalidCString(NulError)
The connection URL contained a NUL
byte.
BadConnection(String)
The database returned an error.
InvalidConnectionUrl(String)
The connection URL could not be parsed.
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.
Trait Implementations
impl Debug for ConnectionError
[src]
impl Debug for ConnectionError
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for ConnectionError
[src]
impl PartialEq for ConnectionError
fn eq(&self, other: &ConnectionError) -> bool
[src]
fn eq(&self, other: &ConnectionError) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &ConnectionError) -> bool
[src]
fn ne(&self, other: &ConnectionError) -> bool
This method tests for !=
.
impl From<NulError> for ConnectionError
[src]
impl From<NulError> for ConnectionError
impl Display for ConnectionError
[src]
impl Display for ConnectionError
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl StdError for ConnectionError
[src]
impl StdError for ConnectionError
Auto Trait Implementations
impl Send for ConnectionError
impl Send for ConnectionError
impl Sync for ConnectionError
impl Sync for ConnectionError