Struct mysql_async::Conn

source ·
pub struct Conn { /* private fields */ }
Expand description

Mysql connection

Implementations§

Returns the ID generated by a query (usually INSERT) on a table with a column having the AUTO_INCREMENT attribute. Returns None if there was no previous query on the connection or if the query did not update an AUTO_INCREMENT value.

Returns the number of rows affected by the last INSERT, UPDATE, REPLACE or DELETE query.

Returns future that resolves to a Conn with COM_RESET_CONNECTION executed on it.

Trait Implementations§

Formats the value using the given formatter. Read more
Executes the destructor for this type. Read more
Returns future that resolves to Conn if COM_PING executed successfully.
Returns future that disconnects this connection from a server.
Returns future that performs query.
Returns future that resolves to a first row of result of a query execution (if any). Read more
Returns future that performs query. Result will be dropped.
Returns future that prepares statement.
Returns future that prepares and executes statement in one pass.
Returns future that resolves to a first row of result of a statement execution (if any). Read more
Returns future that prepares and executes statement. Result will be dropped.
Returns future that prepares statement and performs batch execution. Results will be dropped. Read more
Returns future that starts transaction.

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
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.