Struct mysql_async::Conn[][src]

pub struct Conn { /* fields omitted */ }
Expand description

MySql server connection.

Implementations

Returns connection identifier.

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.

Text information, as reported by the server in the last OK packet, or an empty string.

Number of warnings, as reported by the server in the last OK packet, or 0.

Returns a reference to the last OK packet.

Returns server version.

Returns connection options.

Disconnects this connection from server.

Returns a future that resolves to Conn.

Returns a future that resolves to Conn.

Executes COM_RESET_CONNECTION on self.

If server version is older than 5.7.2, then it’ll reconnect.

Starts a transaction.

Trait Implementations

Formats the value using the given formatter. Read more

Executes the destructor for this type. Read more

Executes COM_PING.

Performs the given query and returns the result.

Prepares the given statement. Read more

Closes the given statement. Read more

Executes the given statement with given params. Read more

Exectues the given statement for each item in the given params iterator. Read more

Performs the given query and collects the first result set. Read more

Performs the given query and returns the first row of the first result set. Read more

Performs the given query and maps each row of the first result set. Read more

Performs the given query and folds the first result set to a single value. Read more

Performs the given query and drops the query result.

Exectues the given statement and collects the first result set. Read more

Exectues the given statement and returns the first row of the first result set. Read more

Exectues the given stmt and maps each row of the first result set. Read more

Exectues the given stmt and folds the first result set to a signel value. Read more

Exectues the given statement and drops the result.

Returns a stream over the first result set. Read more

Returns a stream over the first result set. Read more

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

Converts self into T using Into<T>. Read more

Extract a subset of the possible types in a coproduct (or get the remaining possibilities) Read more

Causes self to use its Binary implementation when Debug-formatted.

Causes self to use its Display implementation when Debug-formatted. Read more

Causes self to use its LowerExp implementation when Debug-formatted. Read more

Causes self to use its LowerHex implementation when Debug-formatted. Read more

Causes self to use its Octal implementation when Debug-formatted.

Causes self to use its Pointer implementation when Debug-formatted. Read more

Causes self to use its UpperExp implementation when Debug-formatted. Read more

Causes self to use its UpperHex implementation when Debug-formatted. Read more

Performs the conversion.

Performs the conversion.

Performs the indexed conversion.

Pipes by value. This is generally the method you want to use. Read more

Borrows self and passes that borrow into the pipe function. Read more

Mutably borrows self and passes that borrow into the pipe function. Read more

Borrows self, then passes self.borrow() into the pipe function. Read more

Mutably borrows self, then passes self.borrow_mut() into the pipe function. Read more

Borrows self, then passes self.as_ref() into the pipe function.

Mutably borrows self, then passes self.as_mut() into the pipe function. Read more

Borrows self, then passes self.deref() into the pipe function.

Mutably borrows self, then passes self.deref_mut() into the pipe function. Read more

Should always be Self

Consumes the current HList and returns an HList with the requested shape. Read more

Immutable access to a value. Read more

Mutable access to a value. Read more

Immutable access to the Borrow<B> of a value. Read more

Mutable access to the BorrowMut<B> of a value. Read more

Immutable access to the AsRef<R> view of a value. Read more

Mutable access to the AsMut<R> view of a value. Read more

Immutable access to the Deref::Target of a value. Read more

Mutable access to the Deref::Target of a value. Read more

Calls .tap() only in debug builds, and is erased in release builds.

Calls .tap_mut() only in debug builds, and is erased in release builds. Read more

Calls .tap_borrow() only in debug builds, and is erased in release builds. Read more

Calls .tap_borrow_mut() only in debug builds, and is erased in release builds. Read more

Calls .tap_ref() only in debug builds, and is erased in release builds. Read more

Calls .tap_ref_mut() only in debug builds, and is erased in release builds. Read more

Calls .tap_deref() only in debug builds, and is erased in release builds. Read more

Calls .tap_deref_mut() only in debug builds, and is erased in release builds. Read more

Attempts to convert self into T using TryInto<T>. 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.