Enum mysql_async_support_model::Error[][src]

pub enum Error {
    PoolConstraintsInitialize,
    MySqlConnectionRetrieve(Error),
    MySqlPrepare(Error),
    MySqlExecute(Error),
    QueryResultSetFetch(Error),
    MySqlPoolDisconnect(Error),
    SshConnInit,
    SshTunnelNotFound {
        jump_host_address: HostAddress<'static>,
        query_target: QueryTarget<'static>,
    },
    SshJumper(Box<Error>),
}
Expand description

Error while using the mysql_async_support library.

Variants

PoolConstraintsInitialize

Failed to initialize mysql_async::PoolConstraints.

MySqlConnectionRetrieve(Error)

Failed to get MySQL connection.

MySqlPrepare(Error)

Failed to prepare SQL statement.

MySqlExecute(Error)

Failed to execute SQL query.

QueryResultSetFetch(Error)

Failed to fetch result set from query execution.

One query may have multiple result sets, and we may fail to fetch a later one.

MySqlPoolDisconnect(Error)

Error occurred while disconnecting connection pool.

SshConnInit

SSH connection initialization failed.

SshTunnelNotFound

SSH tunnel was not found for a query target.

Show fields

Fields of SshTunnelNotFound

jump_host_address: HostAddress<'static>

Address of the jump host.

query_target: QueryTarget<'static>

The query target that the SSH tunnel wasn’t found for.

SshJumper(Box<Error>)

Error while using the ssh_jumper crate.

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

The lower-level source of this error, if any. Read more

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 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

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.