Struct mysql_async::Pool
[−]
[src]
pub struct Pool { /* fields omitted */ }
Asynchronous pool of MySql connections.
Methods
impl Pool
[src]
fn new<O: Into<Opts>>(opts: O, handle: &Handle) -> Pool
Creates new pool of connections.
fn get_conn(&self) -> GetConn
Returns future that resolves to Conn
.
fn start_transaction(
&self,
options: TransactionOptions
) -> BoxFuture<Transaction<Conn>>
&self,
options: TransactionOptions
) -> BoxFuture<Transaction<Conn>>
Shortcut for get_conn
followed by start_transaction
.
fn disconnect(self) -> DisconnectPool
Returns future that disconnects this pool from server and resolves to ()
.
Active connections taken from this pool should be disconnected manually.
Also all pending and new GetConn
's will resolve to error.
Trait Implementations
impl Clone for Pool
[src]
fn clone(&self) -> Pool
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more